Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows NT / Applications / August 2003

Tip: Looking for answers? Try searching our database.

Environment Variables in Command Prompt

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James - 29 Aug 2003 10:48 GMT
I'm trying to use an environment variable within a UNC
path from the command line, for example:

%SERVER%\Software

Although this works through the Run prompt (via the Start
Bar), it doesn't work within a command line.

Any ideas?
Walter Schulz - 29 Aug 2003 17:47 GMT
>I'm trying to use an environment variable within a UNC
>path from the command line, for example:
>%SERVER%\Software
>Although this works through the Run prompt (via the Start
>Bar), it doesn't work within a command line.

That's because "\\servername\software" doesn't look like a valid
command for the CLI. I think something like
dir %server%\software
will work fine.

Ciao, Walter
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.