Fourteen Years of Service
Posts: 105
Threads: 28
help with my batch program 01-24-2014, 07:34 PM
#1
I am wondering how can I refer to the ¨C:\Documents and Settings\user\Start Menu\Programs\Startup¨ folder in my batch program as the folder ¨user¨ will be different in different machines. What we do in situations like this?
Best E-Books (PDF) on Hacking for beginners... ALL for FREE DIRECT DOWNLOAD from MediaFire
DOWNLOAD
•
Twelve Years of Service
Posts: 36
Threads: 2
RE: help with my batch program 03-05-2014, 12:41 AM
#4
%userprofile% points to the user's directory so the redundant '\george' will make it not work. To get to the user Startup folder use exactly what's in the quotes "%userprofile%\Start Menu\Programs\Startup" which you may actually have to quote it in your script because of the space. The system wide startup folder is "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup" which you can use as an alternative.
•