Skip to main content

All Questions

Tagged with
1 vote
1 answer
584 views

Batch file with xcopy runs correctly called from cmd but not with double click

I'm testing a solution for a user getting access denied when running a scheduled backup batch script or by double-clicking it. I've noticed I have the same issue for a simple xcopy call. Specifically,...
Andrea de'Rose's user avatar
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
-1 votes
2 answers
802 views

Properly expand copied file names using XCOPY

I've made a batch script that is set to copy all .cpp files from a location I have set. It can copy the files and retain the folder structure, but it isn't expanding the copied file names properly. I ...
Mr. Mendelli's user avatar
  • 1,269
0 votes
0 answers
416 views

Windows 10 xCopy Over Network

We have a Windows 10 box here that's been running a batch file that runs an xcopy on a folder with subfolders. It's been running happily for years, but last week, on 12th December, for no apparent ...
user avatar
1 vote
1 answer
745 views

Copied empty folder on top of C:\ using xcopy - what happened?

I was testing xcopy on Windows 10 for use in scripts and, in haste, I run: xcopy /s /e /y /x "%~dp0/aaaaaaaaaa" "C:/" where aaaaaaaaaa is an empty folder. /s /e /y /x does the copy recursively, ...
mpliax's user avatar
  • 23
0 votes
0 answers
759 views

Using xcopy to extract&copy files from certain subfolders

I have some data that is systematically organised into multiple-level subfolders, and I would like to copy all files that reside under certain subfolders, which I would like to specify using regexp-...
z8080's user avatar
  • 403
0 votes
2 answers
1k views

Win 10 XCOPY partial extension match

There is a file named README.cppclean in a directory hierarchy. I want to copy all *.cpp files from the directory tree but not the *.cppclean file. All of the commands below do copy the .cppclean ...
Petr Vepřek's user avatar
9 votes
4 answers
56k views

How do I track the progress of XCopy command while It's running?

OPSYS: Win10Pro 64 bit RAM: 10GB I created a batch file which I then saved to the desktop of the local Administrator account. The batch file command line is this: xcopy "F:\movies" "L:\movies" ...
ChrisinAK's user avatar
3 votes
3 answers
16k views

How to copy one directory to another with window command prompt?

I read alot of guides about to copy directories. On SO also read the posts Commmand line command to copy entire directory (including directory folder) to another directory copying all contents of ...
Cataclysm's user avatar
  • 133
5 votes
2 answers
5k views

Is it possible to get an `errorlevel 1` from `xcopy` in Windows 10?

Microsoft documentation states that the xcopy exit codes are Exit code Description 0 Files were copied without error. 1 No files were found to copy. 2 The user ...
MC ND's user avatar
  • 1,541
1 vote
1 answer
885 views

How to back up only newer files

I wrote years ago a script using XCOPY with parameters /E /D /Y /V /R /H that allowed me to back up newer files to my dropbox having always everything updated. Since I upgraded to Windows 7 and 10 ...
Eliezer Jacob's user avatar