Question : Copying files from the dos prompt over a win2k network

I want to copy files over my win2k network.   On other windows networks in the past, I've used the \\comp1\blah format to reach other computers.   I can't get this to work on my current network.   Also, I assume that I'm going to have to give the computer I'm copying from, a username and password.   Utimately, I'd like to put these commands into a script, which means I don't want to use an interactive approach.

Answer : Copying files from the dos prompt over a win2k network

if you're copying between machines not in the same domain then you'd need to add a net use statement, such as net use \\servername\sharename /user:domainname\username password.  Unfortunately this means the password is stored in plain text in the script, so you'd want to encrypt it to prevent unauthorised users prying and make sure you pipe the output to NUL.  The copy command itself is a little clunky.  If you want to copy by referencing just the UNC path, then you'd need to use xcopy.

The best utilitu is robocopy, which is free either by downloading the resource kit tools or finding it on the net for downloadfrom a suitable site.  Robocopy is much better as it supports checksum comparisons and timestamps, allowing you to mirror directories, etc...
Random Solutions  
 
programming4us programming4us