Skip to main content

All Questions

Tagged with
0 votes
0 answers
106 views

Is my batch script to replace program files on startup with rmdir and xcopy not working properly?

I'm trying to work my way around a program that's giving me some problems. It has to fire up every day and do it's thing, but rarely does - losing data and breaking very frequently. So to counter this,...
neff's user avatar
  • 11
0 votes
1 answer
204 views

Batch file not getting the first 5 characters in drop file filename

I created a simple batch file that copies drop file in specific folder. This my batch script: rem This will create a BACK-UP DATA Folder in Desktop rem with a SUB-FOLDER which filename must be the ...
EyTheGreat's user avatar
0 votes
2 answers
2k views

XCOPY only files from a parent folder and from all its subforlders to a new folder in Windows?

I was searching a lot of times how to copy all the files of different extensions from a folder and all its subfolders to a new folder without copying the folders itself using Batch File. I mean ONLY ...
Afnan A.'s user avatar
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
2k views

Copy files from one folder to another using a pattern based on input file in Windows

I need some help using for and xcopy to move files from one folder to another based on an input text file. What I need help with is matching files based on a pattern. My input file looks like this: ...
Jason's user avatar
  • 1
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
0 votes
1 answer
87 views

copying from subdirectories to one directory windows bat [closed]

I'd like to copy all files from subdirectories to one destination, using Windows bat. Example: Files to copy: C:\src\a\1.bmp C:\src\a\2.bmp C:\src\a\b\3.bmp Copied files: C:\dst\1.bmp C:\dst\2.bmp C:...
Slagathor'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
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
0 votes
2 answers
370 views

how to backup os of server using xcopy

I have been able to backup some files with the xcopy command using the following code in my batch file. xcopy /e /s /d /i /y "C:\Users\ba\Desktop\all\a" "C:\Users\ba\Desktop\all\bb" >> "C:...
janet's user avatar
  • 1
2 votes
1 answer
1k views

batch copy folder located by guid

In a batch file, can I copy a folder located by a constant path like \?\Volume{GUID}? When copying (copy, xcopy or robocopy) a directory and its content from a local removable drive (a usb external ...
fkk's user avatar
  • 21
1 vote
1 answer
1k views

XCOPY /exclude reference a ext file that is not in the working directory

I have tried to reference the directory of the text file after /exclusions. What is wrong with my syntax? xcopy "J:\Common\NY SERTIFIKATBANK\18 Buoyancy Reports\Nav Lights\534515" "534515" /I /...
Bijan Khadembashi's user avatar
-2 votes
1 answer
46 views

how to move files from sub-folder to folder

I've got: C:/PICS/ASF/photos/files (.jpg) C:/PICS/DFS/photos/files (.jpg) C:/PICS/HGD/photos/files (.jpg) C:/PICS/FTG/photos/files (.jpg) .....etc In every "photos" directory is more than one ....
Alin's user avatar
  • 1
1 vote
0 answers
2k views

Windows Batch to copy one file to multiple directories

I have a rather simple copy and paste batch job. That checks for a more recent file and overwrites it. I was trying to take a single COPY and copy it to a second directory. In simple, this Batch is ...
Dave Hamilton's user avatar
1 vote
1 answer
10k views

Move files of particular pattern in batch to another folder [closed]

I am trying to write a Windows batch file with commands for moving files with a pattern the file name from one folder to another folder, and others to others. For example: vision.xls should go to a ...
Jyeta Nagpal's user avatar

15 30 50 per page