Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2010-11-23
7
Medium Priority
?
391 Views
Last Modified: 2012-05-10
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!
0
Comment
Question by:naseeam
  • 3
  • 2
  • 2
7 Comments
 
LVL 66

Accepted Solution

by:
johnb6767 earned 1000 total points
ID: 34200020
Shouldnt be a problem.....

I have several variables set that point to UNC paths......

I also use setx.exe to set them.....

Setx.exe
http://technet.microsoft.com/en-us/library/cc755104(WS.10).aspx
0
 
LVL 35

Assisted Solution

by:Ernie Beek
Ernie Beek earned 1000 total points
ID: 34200134
You should be able to map them both ways.

So you can use:

-\\some_server.test.com\userdata\tmp\makefile.options
Or
-P:\userdata\tmp\makefile.options

I think it's always best to use the UNC though (like \\some_server.test.com\userdata\tmp\makefile.options)

Drive mappings might change more often than UNC paths do.
0
 
LVL 1

Author Comment

by:naseeam
ID: 34200206
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?
0
Choose an Exciting Career in Cybersecurity

Help prevent cyber-threats and provide solutions to safeguard our global digital economy. Earn your MS in Cybersecurity. WGU’s MSCSIA degree program was designed in collaboration with national intelligence organizations and IT industry leaders.

 
LVL 35

Expert Comment

by:Ernie Beek
ID: 34200297
Could be that clearmake doesn't suport unc paths. clearmake is unixlike, unc paths tend to windows conventions.
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 34200788
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......

0
 
LVL 1

Author Comment

by:naseeam
ID: 34200840
@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?
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 34202564
I use Setx.exe, in the link above....

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

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
Unable to change the program that handles the scan event from a network attached Canon/Brother printer/scanner. This means you'll always have to choose which program handles this action, e.g. ControlCenter4 (in the case of a Brother).
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question