Depending on when a user logging on to the server the user gets an ID number and this number gets into the temp folder as a subfolder name, example:
"C:\Documents and Settings\%username%\Local Settings\Temp\1" (if the user is the first one to logging in to the server) Next user will get "ID 2" etc. When user is logging on and off during the day this ID number will change every time they logged in. I have a batch file that is searching this users folder and I have to check the temp folder and its subfolder (or going via the taskmanager in the user window) then edit the batch file to get the correct folder in the "Local Settings\temp"
Is there a way to do this without editing the batch every time?
Copy C:\"Documents and Settings"\%username%\"Local Settings"\Temp\1\Map*.* (sometimes it can be "1" or "2" or "3" etc, depending on when logging in and how many users are logged in for the moment)
Regards