Ok I have an issue that just completely defies all logic and reasoning.
I have a startup script that is supposed to set the Working Directory to X:\(user's name)\work and this works with 22 users. However with one of them it will randomly set it to X:\Users\(user's name)\work.
It will do this sometimes after a restart, after Creo crashes, or just when he launches Creo after no issues.
My command to set the work directory is:
if "%username%" == "erik.zab" set homepath=erik
As I stated this only happens with one user and just at random times.
Any help with this issue will be greatly appreciated.
I think Antonius is asking if all computer have the same map drives. Could it be that the rouge computer drives are mapped with different letters (i.e. "t" instead of "x").
All the drives map exactly the same. It is done by a vbscript attached to their Active Directory User account.
It will make Work directory in the correct spot one time, and then not the next time. Without logging out or restarting.
I think that you do not use correct notation.
If I open Command prompt window and enter set home command, I can see the following lines
HOMEDRIVE value does not contain backslash at the end
HOMEPATH does contain backslash at the beginning
I think that in case that your workdir is set to X:\Users\(user's name)\work, the if command returns FALSE.
I changed my slashes and will comment back here in a few days if the issues pops back up or not. It is very random when it will work correctly and when it won't.