Windows cmd supports UNC-Paths in (some) built-in functions
Examples:
- Code: Select all
copy test.txt \\server\freigabe\
1 Datei(en) kopiert.
cd won't work, that's why the wrong assumption "cmd does not support UNC" is in everybodys head. The problem is only DOS-backwards-compatibility, since some DOS programs relied on "current folder" having a drive letter, where "current folder" means the currently selected folder on the commandline.
Copy does, even for DFS-paths. I use it every day, works at least back down to Server 2003. If copying to a folder don't forget the trailing backslash.
Dir etc work, too:
- Code: Select all
C:\Users\xxxxx\Desktop>dir \\DFS-root\Users\xxxxx
Volume in Laufwerk \\DFS-root\Users: hat keine Bezeichnung.
Volumeseriennummer: E859-FD1D
Verzeichnis von \\DFS-root\Users\xxxxx
19.09.2011 07:50 <DIR> xxxxx
0 Datei(en), 0 Bytes
1 Verzeichnis(se), 30.351.244.092 Bytes frei
Even starting programs works (since the "current folder" has a drive letter
)
Just try it, don't believe what everyone "knows"