Search found 5 matches

by supersoup
13 Jul 2009 07:09
Forum: DOS Batch Forum
Topic: Cross referencing folders
Replies: 4
Views: 6776

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
by supersoup
13 Jul 2009 06:35
Forum: DOS Batch Forum
Topic: Cross referencing folders
Replies: 4
Views: 6776

yes the 2 folders have similar directory structure.

could you please explain how i use this code?
or how it works?
by supersoup
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...
by supersoup
10 Jul 2009 10:17
Forum: DOS Batch Forum
Topic: IF File Exist
Replies: 3
Views: 15019

That worked like a charm! Thanks I have written another batch file that lists the contents in a particular folder: echo Contents of Folder A >> "Folder A Contents.txt" dir "C:\Folder A" /s /b >> "Folder A Contents.txt" How do i get the the previous code to see if files ...
by supersoup
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...