Search found 3 matches

by modrzej
24 Jun 2016 01:34
Forum: DOS Batch Forum
Topic: Batch file to move files based on a list
Replies: 13
Views: 29322

Re: Batch file to move files based on a list

Well the current script is moving, not copying. I am not understanding how you have one source folder but the same file names twice in your list. OK. Let me explain. Source folder is a base of graphics. Target folder is a production base for printer. On list, we have graphics which we need to print...
by modrzej
24 Jun 2016 01:19
Forum: DOS Batch Forum
Topic: Batch file to move files based on a list
Replies: 13
Views: 29322

Re: Batch file to move files based on a list

I forgot change do move to do copy in quote post. But i found a solution. First install xxcopy and later change script move to xxcopy with /SG switch. @echo off set Source=E:\test1 set Target=E:\test2 set FileList=E:\lista.txt echo. if not exist "%Source%" echo Folder zrodlowy "%Sourc...
by modrzej
23 Jun 2016 03:15
Forum: DOS Batch Forum
Topic: Batch file to move files based on a list
Replies: 13
Views: 29322

Re: Batch file to move files based on a list

Try this: @echo off set Source=C:\Users\MAs\Desktop\moving\PI set Target=C:\Users\MAs\Desktop\moving\no set FileList=C:\Users\MAs\Desktop\moving\not.txt echo. if not exist "%Source%" echo Source folder "%Source%" not found & goto Exit if not exist "%FileList%" echo...