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