Link to home
Start Free TrialLog in
Avatar of naseeam
naseeamFlag for United States of America

asked on

Can network path be specified as value of a system variable?

I have a system variable that holds value of local path as follows:

CCASE_OPTS_SPECS = C:\home\makefile.options

Instead, can this system variable be assigned with a value of network path as follows:

CCASE_OPTS_SPECS = \\some_server.test.com\userdata\tmp\makefile.options

I have this server mapped to P: drive.

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of johnb6767
johnb6767
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of naseeam

ASKER

UNC path didn't work.  When I changed to local path, then it worked.

I typed the following value for the system variable:

\\some_server.test.com\userdata\tmp\makefile.options

When I invoked the clearmake program, it gave me error saying something like makefile.options not found.

Then, I moved makefile.options to my local drive and set the value to my local drive.  When I invoked clearmake program, it found the makefile.options and did what it was suppose to do.


Please advise.  What's wrong with my setting of network path?
Could be that clearmake doesn't suport unc paths. clearmake is unixlike, unc paths tend to windows conventions.
If you go to a cmd prompt.....

set CCASE_OPTS_SPECS=\\some_server.test.com\userdata\tmp\makefile.options

Then

echo %CCASE_OPTS_SPECS%

It should return the path.....

Then if you set it at a machine level, you should be able to go to a run dialogue, and just enter %CCASE_OPTS_SPECS%

Explorer should open to the network path above......

Now if the app supports UNC, then thats another issue......

Avatar of naseeam

ASKER

@johnb6767

I tried first half of your instructions and path was returned.  Then, I couldn't follow second half of your instructions.  

How do I set it at a machine level?
I use Setx.exe, in the link above....

Or do it manually, in the Environment Variables section of System Properties....