|
Answer» i know how to use xcopy & robocopy to copy files and such to diff places. but how would you i copy a FILE to the startup location "C:\Documents and Settings\USER\START Menu\Programs\Startup" of the current user if i don't know the users NAME & the user is on a limited Xp account..?? Is there a certain code that would copy the file to the current ushers startup folder without having to PUT the EXACT location address like "C:\Documents and Settings\USER\Start Menu\Programs\Startup" ...Use %username%. That returns the username of the current user to make coding more generic.
i.e.
Code: [Select]"C:\Documents and Settings\%username%\Start Menu\Programs\Startup"Or even more robust would be:
Code: [Select]copy file.ext "%userprofile%\Start Menu\Programs\Startup"
|