UNCs in batch files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Am I right in thinking you can't run a command in a *.bat
file from a UNC path ( \\server\share\file.exe )? I've
just seen a couple of lines in a startup script bat which
I'm sure won't work.

Do they work in any version of Windows/DOS ?
 
Am I right in thinking you can't run a command in a *.bat
file from a UNC path ( \\server\share\file.exe )? I've
just seen a couple of lines in a startup script bat which
I'm sure won't work.

Running a command in a batch file from a UNC works fine as long as the
person whose credentials it is running under has access to the network
share in the command.
Do they work in any version of Windows/DOS ?

As long as the networking services have been started, it works in all of
them.

--
Tom Porterfield
MS-MVP Smart Display
http://home.comcast.net/~tp.porterfield

Please post all follow-ups to the newsgroup only.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top