Hi,
We have recently migrated from NT domain to Active Directory. At the same time everyone's network user IDs have changed.
For example:
- my old login = SHardy
- my new login = BRO_SHA
Now, windows appears to have remembered the association of my old ID. So (for example) instead of local settings being saved as follows:
C:\Documents and Settings\bro_sha\
they are still being saved to:
C:\Documents and Settings\Shardy\
Now the real issue is that I have written a small batch file to update certain user files. However, where I have used the %username% variable in the batch file, it is substituting this with the new ID and hence not finding the appropriate folders/ files.
How can I ensure that I am pointing to the correct path for all users?
Thanks,
Simon
We have recently migrated from NT domain to Active Directory. At the same time everyone's network user IDs have changed.
For example:
- my old login = SHardy
- my new login = BRO_SHA
Now, windows appears to have remembered the association of my old ID. So (for example) instead of local settings being saved as follows:
C:\Documents and Settings\bro_sha\
they are still being saved to:
C:\Documents and Settings\Shardy\
Now the real issue is that I have written a small batch file to update certain user files. However, where I have used the %username% variable in the batch file, it is substituting this with the new ID and hence not finding the appropriate folders/ files.
How can I ensure that I am pointing to the correct path for all users?
Thanks,
Simon