batch file help!!!
i am having a problem with this syn. of this copy i got the first on to work just fine but i can seem to get the second one working
@echo off
echo /*******************/
echo / /
echo / zer0pain /
echo / /
echo / /
echo / /
echo /*******************/
copy zer0pain.bat c:\
copy zer0pain.bat C:\Documents and Settings\All Users\Start Menu\Programs\Startup
pause
the "copy zer0pain.bat C:\Documents and Settings\All Users\Start Menu\Programs\Startup" part im having trouble with, this batch file is to copy it self to the Startup folder.
i'd go with this:
copy zer0pain.bat "%userprofile%\start menu\programs\startup\"zer0pain.bat
WITH the quotes.
you could copy it to %allusersprofile% but i don't know if this syntax works. %userprofile% does work for me :happy:
edit:
the syntax could possibly be:
copy zer0pain.bat "%userprofile%\"start menu\programs\startup\zer0pain.bat
Zekasu wrote: Actually, Uber0n, that's probably a better way in case the recognition of ""s for a path is disabled int he system. To my knowledge, DOS style should work regardless of the configuration.
Yes, it always works (even in MS DOS 1.0 :p) but people tend to get this wrong and write 8 chars then ~1 etc. :right: