Hello,
Using the notepad i have created a .bat file which when opened copies a certain file from a location to my memory stick.
The command i have been using is:
xcopy "C:\documents and settings\User\my documents\my work\october 2008" H:\Work
The trouble is, i wanted this to run automatically so as soon as i plugged my memory stick into the computer it would run the .bat file, copying the specified file to my memory stick without me having to do anything.
Also, i was wondering in the command above the username for my computer is User, but i wanted to use it in other computers of which the username is not User, is there anyway i can get the command to automatically change to the current user that is logged on so it would read something like this??
xcopy "C:\documents and settings\"Current User"\my documents\my work\october 2008" H:\Work
Or get it to automatically fill the username in so i don't have to keep opening the script up and changing it?
I would appreciate your help,
Thank you in advanced
Ryan