Solved

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

Posted on 2010-11-23
7
370 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 250 total points
Comment Utility
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 250 total points
Comment Utility
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
 

Author Comment

by:naseeam
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 35

Expert Comment

by:Ernie Beek
Comment Utility
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
Comment Utility
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
 

Author Comment

by:naseeam
Comment Utility
@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
Comment Utility
I use Setx.exe, in the link above....

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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now