PDA

View Full Version : UNCs in batch files


December 11th 03, 07:52 AM
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 ?

Tom Porterfield
December 11th 03, 07:52 AM
In article >,
says...
> 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.

December 11th 03, 07:52 AM
Cheers for the info

Google