All Questions
40
questions
-1
votes
1
answer
58
views
What is causing the xcopy file from having an error in it?
I am new to xcopy. I am trying to move a file that is in excel format to a new destination and as a csv file. I have to do this so that the DMExpress ETL job can move the file and then read it. This ...
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,...
0
votes
1
answer
1k
views
How to use xcopy with /exclude in a network path with spaces?
I want to use xcopy on a network path. I actually do.
The problem is that I wanted to use an /exclude option. But the file would be in a network path. But the network path has spaces (s:\my path).
So ...
1
vote
1
answer
333
views
Is it possible to make XCOPY only copy the files from a source if they are older than the ones in the destination?
Is it possible to make a batch script only XCOPY the files from a source if they are older than the ones in the destination? I'm trying to archive Roblox versions. I tried /D, but that just makes it ...
1
vote
1
answer
1k
views
xcopy only newest file to a subdirectoy
I have a batch file that runs when I build my solution in VS2019. The .bat file uses xcopy to copy .dlls from my project's Debug folder to another destination direction.
I want to use xcopy to copy ...
0
votes
1
answer
72
views
copy folders and content to a external drive
i have this
for /F "delims=" %%a IN ('dir /b /s /ad "*"') DO ( FOR /F %%c IN ('dir /b/s "%%a\*.txt" ^') DO XCOPY "%%a" "J:\" )
but it only moves the ...
0
votes
1
answer
700
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 ...
0
votes
1
answer
265
views
Does XCOPY leave credentials cached in LSASS?
When using XCOPY to copy files to a remote machine, are your credentials used to connect to the remote machine cached in the LSASS of that machine?
I am trying to avoid leaving any credentials ...
-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 ...
1
vote
1
answer
4k
views
Xcopy jpg files from subfolders of "%~dp0" using wildcard
I have one folder on my desktop Test, and in this folder I have two folders, WorkingFolder\Bilder and Station 1. So the structure looks like this:
Test\WorkingFolder\Bilder
Test\Station 1
Within ...
0
votes
0
answers
168
views
Taking backup of files using XCOPY
I have a file_list where the paths of the source files are saved.
ex:
file_list
-c:\SAY\hello\world.txt
-c:\SAY\hello\New\file.txt
Using for loop i tried copying the files which are in the ...
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: ...
0
votes
1
answer
11k
views
Moving files to FTP in batch file and delete source files
I need to create batch script for copy files from PC to FTP server. After copy - delete all files from source. And in destination directory overwrite all existing files.
I found many solutions, but I ...
0
votes
1
answer
6k
views
Copy files with full relative path in Windows
I have a large set of files (45,000+) in a pretty complex folder structure. I extracted a subset of ~13,000 files and their paths (relative to the root folder) that I want to copy with the original ...
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 ...