Skip to main content
12-Amethyst
July 1, 2013
Question

Work Directory

  • July 1, 2013
  • 2 replies
  • 2780 views

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:

set homedrive=x:\

if "%username%" == "erik.zab" set homepath=erik

set workdir=work

As I stated this only happens with one user and just at random times.

Any help with this issue will be greatly appreciated.

2 replies

17-Peridot
July 1, 2013

Does Erik's computer have trouble assigning drive X:\ on bootup?

12-Amethyst
July 1, 2013

No. I am Erik, I used my name for an example. The others are all wrote the exact same, in the exact same startup script.

Dale_Rosema
23-Emerald III
23-Emerald III
July 1, 2013

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").

24-Ruby III
July 2, 2013

Erik,

1.]

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

HOME=D:\users\mh

HOMEDRIVE=C:

HOMEPATH=\Users\mh

HOMEDRIVE value does not contain backslash at the end

HOMEPATH does contain backslash at the beginning

2.]

I think that in case that your workdir is set to X:\Users\(user's name)\work, the if command returns FALSE.

Martin Hanak

12-Amethyst
July 2, 2013

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.

Thanks

Erik

24-Ruby III
July 3, 2013

Erik,

if your problem appears again, please upload your startup script.

Martin Hanak