Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to copy files(type .scr files) to my network (domain connected ) connected using command prompt or through copy command; is it possible?

How do I copy files or share the files throughout network using command prompt?

share|improve this question
    
You can use copy to copy single files using a UNC path. Multiple *.scr files in different paths, you'd have to use a tool like forfiles which will loop through a subdirectory to find the file(s) you are wanting to copy. –  sunk818 Jan 7 at 19:48

3 Answers 3

In all Windows versions you can use xcopy instead of copy.

In computing, XCOPY is a command used on PC DOS, MS-DOS, OS/2, Microsoft Windows, and related operating systems for copying multiple files or entire directory trees from one directory to another and for copying files across a network.

Article and examples on Wikipedia: link


In windows Vista and later versions you can use robocopy.

share|improve this answer

You can use something like robocopy to copy files to network locations.

share|improve this answer

Files are copied right the same way across the network: the difference is how the file name ("path") begins: C: will be for a local file on the C: drive, while \\SERVER\SHARE will instead be a "shared directory" on the station named SERVER; rest unchanged. You can use copy for file(s) in a single directory, or commands like xcopy or robocopy to copy hierarchies (trees) of files.

To share the files, you need administrator's rights on the "server" machine and create a "share"; this can be done with command-line net share share=... or using the Windows Explorer.

Note: because of previous abuses, .scr files might be subjected to anti-virus policy on the other station (the "server") you are connecting to when doing a file copy across the network.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.