I got it to work!
Thank you so much!
The only problem is it only deletes 1 file each time it runs, how do i fix this?
I already know the file path of the folders i want to delete from, in case that helps
It also gives me an Error:
Line: 38
Char: 17
Error: File not found
Search found 5 matches
- 13 Jul 2009 07:09
- Forum: DOS Batch Forum
- Topic: Cross referencing folders
- Replies: 4
- Views: 6776
- 13 Jul 2009 06:35
- Forum: DOS Batch Forum
- Topic: Cross referencing folders
- Replies: 4
- Views: 6776
- 10 Jul 2009 12:16
- Forum: DOS Batch Forum
- Topic: Cross referencing folders
- Replies: 4
- Views: 6776
Cross referencing folders
I am trying to write a program that deletes files from FolderA that are already in FolderB, but i am new to dos commands. I have written 2 batch files thinking that this was the correct direction to go in but im not really sure. ::Creates a text file called "Folder A Contents.txt" that con...
- 10 Jul 2009 10:17
- Forum: DOS Batch Forum
- Topic: IF File Exist
- Replies: 3
- Views: 15019
- 10 Jul 2009 07:44
- Forum: DOS Batch Forum
- Topic: IF File Exist
- Replies: 3
- Views: 15019
IF File Exist
I am brand new to batch files and dos commands and i would like to make a file that tells me if a file exists or not. This is what i have: echo off if not exist "C:\Folder A\File Q.txt" goto ELSE echo The file C:\Folder A\File Q.txt DOES exist. >> "IF Test Results.txt" goto END E...