Solved

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

Posted on 2010-11-23
7
382 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 66

Accepted Solution

by:
johnb6767 earned 250 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 250 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
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

623 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