Computer Hope

Microsoft => Microsoft DOS => Topic started by: Soli004 on November 11, 2008, 06:49:26 AM

Title: Users Temp folder (local settings) change depending when logging on to server.
Post by: Soli004 on November 11, 2008, 06:49:26 AM
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
Title: Re: Users Temp folder (local settings) change depending when logging on to serve
Post by: Soli004 on November 11, 2008, 01:41:23 PM
Could there be another solution to it?
Is it possible to copy all file names that has the ~Map*.* under the usernames temp folder and its subfolders?

Copy C:\"Documents and Settings"\%username%\"Local Settings"\Temp\"including subfolders"\that has filenames with ~Map*.*

Is this possible?

Regards