Thank you, Squashman. Much appreciated!
Also, I was missing a space between DO and (
Search found 4 matches
- 25 Jan 2017 14:23
- Forum: DOS Batch Forum
- Topic: Simple check - If a files exists in one folder, then delete them from another folder
- Replies: 2
- Views: 2427
- 25 Jan 2017 11:26
- Forum: DOS Batch Forum
- Topic: Simple check - If a files exists in one folder, then delete them from another folder
- Replies: 2
- Views: 2427
Simple check - If a files exists in one folder, then delete them from another folder
Hi all. I've tried many variations to get a seemingly simple task to work, but have not had success. Very simply, for each file in a folder (C:\Pers\test1), I would like to check to see if the file exists in another folder (C:\Pers\test2). If the file exists in test2, then delete it from test1. Here...
- 25 Feb 2015 07:03
- Forum: DOS Batch Forum
- Topic: Another unzip and renaming question with batch files
- Replies: 3
- Views: 3146
Re: Another unzip and renaming question with batch files
Thanks for the prompt reply! It works. I had to move the delete command above the unzip command because otherwise I am deleting both the old and new files. When changing directory, why is it better to use /d? I see that you were a little more creative in renaming than I was, using the filename to ou...
- 24 Feb 2015 14:00
- Forum: DOS Batch Forum
- Topic: Another unzip and renaming question with batch files
- Replies: 3
- Views: 3146
Another unzip and renaming question with batch files
Hi all, I'm new to using batch files and I've been perusing the board for a bit trying to find a solution for my renaming issue. On my network, I am trying to extract .pdf files from a .zip and rename them with the first 9 characters of the filename. Original filenames look like this: 055CDGEF2.BW50...