Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what syntax to use for batch file to copy to "network drive"

Status
Not open for further replies.

benzguy777

Vendor
Joined
Sep 17, 2002
Messages
74

I want to make a batch file to copy to a network drive. What syntax do I use?

copy c:\temp to &quot;network drive&quot; << What do I use here?


Thanks!

 
You can use the Net use command to map a network drive to your computer... ex: net use k: \\networkpc\sharefolder
after that you can use copy c:\temp\filename or *.* k:\ A+, MCP, CCNA
marbinpr@hotmail.com

Keep fighting for your knowledge!

 
You don't actually need to use the &quot;net use&quot; command. You can just use the UNC path (so long as the user has access).

Xcopy C:\dirs\file.ext \\servername\sharename

should work fine. Cheers,
Sam

Please let members know if you found their posts helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top