naseeam
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\use rdata\tmp\ makefile.o ptions
I have this server mapped to P: drive.
Thanks!
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\use
I have this server mapped to P: drive.
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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_se rver.test. com\userda ta\tmp\mak efile.opti ons
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......
set CCASE_OPTS_SPECS=\\some_se
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......
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 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....
Or do it manually, in the Environment Variables section of System Properties....
ASKER
I typed the following value for the system variable:
\\some_server.test.com\use
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?