01-22-2012, 01:08 AM
(01-20-2012, 03:17 PM)AceInfinity Wrote: First thing:
Code:set loc="C:\Users\%username%\Documents\Hackopz\save.bat"
set loca="C:\Users\%username%\Documents\Hackopz\"
if exist %loca% goto intro
CD "C:\Users\%username%\Documents\Hackopz\"
How do you expect those directories or that file to exist when you don't make a check and create any directory like that?
So, Should I use it like this?
Code:
set loc="%userprofile%\Documents\Hackopz\save.bat"
set loca="%userprofile%\Documents\Hackopz\"
if exist %loca% goto intro
CD "%userprofile%\Documents\Hackopz\"
" %userprofile% " will always exist. right?
And thanks, I'll remember what you said.