copy to network comp. using command line

I want to copy a file from my computer to a network computer (both Win2k) and log in as neccesary using command line. I dont want additional tools, just what comes on every Win2k computer.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

try the NET USE command to first authenticate yourself and then u can copy it over as usual


NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BobSamonikAuthor Commented:
"As usual" meaning
COPY file \\computername\dir
I cant check that but I think "\\computer\dir"-part will couse error
COPY file \\computername\dir   should work perfectly fine.
You can also try
XCOPY file \\computername\dir

Like vickram said, you might need to authenticate first.
if UNC names like \\computername\dir   dont work
u will have to MAP them and use that mapped drive

BobSamonikAuthor Commented:
It really works!
I thought there was something more to using COPY with \\computername\dir as destination
A while ago (when I didnt need it) I read about that and tried to copy but if I recall right there was some command like 'COMPUTER' or something, I think it wasn't NET USE, ... or maybe it was .. never mind! This is all I need!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.