Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Users Temp folder (local settings) change depending when logging on to server.  (Read 5323 times)

0 Members and 1 Guest are viewing this topic.

Soli004

    Topic Starter


    Rookie

    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

    Soli004

      Topic Starter


      Rookie

      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