Skip to main content

All Questions

Tagged with
2 votes
2 answers
2k views

Is there Windows copy command that mimic Unix `cp -r` behavior?

I don't know how to name this behavior vividly, just call it loyalcopy. Two figures will illustrate it clearly. I'd like to issue two commands to copy two filesystem nodes (regardless it is a file ...
Jimm Chen's user avatar
  • 6,034
0 votes
1 answer
699 views

copy big file to multiple locations at the same time

I am trying to use a CMD command prompt to copy a big file (1.5G) from one location to multiple destinations at the same time. Is there a way to do this using COPY/XCOPY etc? I haven't been able to ...
davin's user avatar
  • 1
0 votes
1 answer
284 views

Receiving an Error when Copying file over

I have a script that i run against 1K systems. In the script I copy a file over to the systems' temp folder. 1 or 2 systems out of 1K systems return an error of "Invalid drive specification" when I ...
user3451049's user avatar
0 votes
1 answer
416 views

Batch to move file into sub directories excluding parent directory

I have a *otf file that I would like to copy into all the sub directories of the parent folder. This is what I have attempted. for /R %%x in (.) do copy "file.otf" "%%x" This works for the most part ...
PunyTed's user avatar
0 votes
1 answer
47 views

Attempt To Use Batch Files While Keep Structure

I wanted to use robocopy, but it is not possible due to my text file has filenames attached. I ended up have to use copy instead. I wanted to copy files like this... Source: S:\folder\A\B\C\D\E\...
PanK's user avatar
  • 3
2 votes
1 answer
81 views

Copy several files and send each to a specific subfolder

I have a folder containing CD covers in .jpg and another folder containing subfolders, each with the corresponding CD. I want to send each CD cover to its corresponding subfolder. They are already ...
Rodrigo's user avatar
  • 135
0 votes
2 answers
1k views

How to deal with copy/xcopy from a virtual machine

I'm working with several virtual machines, one of them being Windows 7. I'd like to copy files from that machine to my machine (which is Windows XP). Until now this is done using ...
Dominique's user avatar
  • 2,283
0 votes
1 answer
39 views

how can copy contents of a folder which is does not have a folder name using CMD

Due to virus when I open a pen drive it shows like this: I want to make a .bat file to copy contents of this folder to another directory. I can use open cmd and usingxcopy D:\" " /s D:\ to do that ...
Madusanka Bibile's user avatar
3 votes
2 answers
2k views

Possible to copy files and directory structure but don't copy file contents (i.e. 0 byte file size)?

I'm wondering if it's possible to copy files and directory structure, but don't actually copy file contents. I want to copy over file names and extensions but have each individual file be 0 bytes in ...
I'd Copy That's user avatar
19 votes
7 answers
39k views

How to copy a directory on Windows, preserving timestamps of all directories being copied

I want to copy a directory tree while preserving timestamps of any file and directory contained therein being copied. The source directory is on a data DVD (ISO-9660 filesystem). I am copying to an ...
Armen Michaeli's user avatar
0 votes
0 answers
481 views

how to copy a folder and its contents to another folder using xcopy?

So I've been trying to copy a folder to another folder. But whatever I do, it only copies the file(s) inside the source folder. I've looked at numerous examples like: ss64 example microsoft example ...
mrjayviper's user avatar
  • 1,000
0 votes
1 answer
2k views

How to simply xcopy a folder into another keeping the structure?

Suppose I have the following structure and the current working directory is root: root - sub1 file1.xml file2.xml - sub2 file3.css - _target {is an ...
TWiStErRob's user avatar
2 votes
1 answer
440 views

copy file in 8.3 format produces "There is already a file with the same name in this location" error in windows 7

I use xcopy and batch scripting to backup newer files xcopy "src" "dest" /O /X /E /H /K /I /D. I was asked if I want to replace something which should not happen. So I did the copy process manually ...
dkeck's user avatar
  • 243
0 votes
2 answers
6k views

Copy all files, folders, subfolders, hidden or not, with long file names [duplicate]

I have 400gb to transfer from my internal drive to an external one. It's a complex hierarchy made of over 60 000 files and folders, with long file names. While creating those files is not a problem ...
Yugo Amaryl's user avatar
0 votes
1 answer
6k views

Command to Xcopy folders across the network and rename the folder at destination as the date

I'm using Xcopy to copy a folder across a network XCOPY "C:\Documents and Settings\Administrator\Desktop\File\Output*." "C:\new" /s /e /c I want the folder at the destination to be named with the ...
Zigmaphi's user avatar
  • 108

15 30 50 per page