Search found 4 matches

by AOK
05 Feb 2020 15:07
Forum: DOS Batch Forum
Topic: Sync from a list file with
Replies: 6
Views: 4431

Re: Sync from a list file with

While cleaning leftovers from my disks, found this. Maybe it can help you a step further in the right direction. (the last code you posted is a step in the *wrong* direction, btw) Thanks but: 1/ I tried it - it did nothing. Tested it in a few variations and still can't understand the template part ...
by AOK
20 Jan 2020 10:12
Forum: DOS Batch Forum
Topic: Sync from a list file with
Replies: 6
Views: 4431

Re: Sync from a list file with

Replace the xcopy line with: if exist "%src_folder%\%%~nxf" echo xcopy "%src_folder%\%%~nxf" "%%f" (remove the "echo" when everything is OK) Actually it DOES with the ECHO! because of the piping. According to this and this in order for XCOPY not to ask me file or folder I have to pipe D|XCOPY . And...
by AOK
20 Jan 2020 09:34
Forum: DOS Batch Forum
Topic: Sync from a list file with
Replies: 6
Views: 4431

Re: Sync from a list file with

Thanks for the response, guys. Maybe I have to try to explain it again. :-) I want everything within a specific folder with subfolders with the files % TEMPLATEFolder % to be scanned as a list.txt . And later to be able to reproduce the same folder structure in a new place % DestFolder % as well. Th...
by AOK
14 Jan 2020 13:38
Forum: DOS Batch Forum
Topic: Sync from a list file with
Replies: 6
Views: 4431

Sync from a list file with

My sys info from the bat is in the end. Sooo there was a similar topic, but not quite. My task is: I have a single %SourceDir% with many if not hundreds of files with unique names. All in the same folder. I have the %DestDir% / %SubFolder1% / %SubFolder2% / %SubFolder3% / %SubFolder4% /(up to 4 subf...