Search found 2 matches
- 08 Feb 2019 14:53
- Forum: DOS Batch Forum
- Topic: Move file to folder based on part of file name
- Replies: 4
- Views: 4729
Re: Move file to folder based on part of file name
Untested: for %%i in ("*-mC-*.pdf") do move "%%~i" "subfolder1\" Same for the other patterns. Steffen Thank you so much! Can I run this instantly or within seconds of a new file(s) being placed in the base folder? I have added a loop set for 10 seconds and is working fine, but is there a way to run...
- 08 Feb 2019 12:07
- Forum: DOS Batch Forum
- Topic: Move file to folder based on part of file name
- Replies: 4
- Views: 4729
Move file to folder based on part of file name
Hello, I'm trying to build a batch file that will automatically move files to 1 of 3 folders depending on which tag is in the file name. Tags -mC- -mF- -mP- Example file names 253434276_weddingphotos -mC- _44.pdf <- Would go to folder 1 picturesToSend-mF-_08092018.pdef <- Would go to folder 2 354534...