Saturday, February 10, 2007

Using UNC Network Names with Files

As already mentioned, you can use long file names in an MS DOS Box.But you can even use UNC-style network names.

Example: DIR file:////server/share1/dir1
will give you all files on the computer named "server", in the share named "share1" and in the directory "dir1".

This does not work with CD, but it will work with MD, RD, DIR, COPY, MOVE, REN, and so on.I use this in combination with a batch file to copy files to a number of computers on a network.

No comments: