Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Bat file to check for multiple files
Name: freezefire Date: May 21, 2009 at 10:16:22 Pacific OS: Windows XP Subcategory: Batch
Comment:
Hi all - Need a little help. Attempting to write a batch file to check for and delete multiple files, outputting to a log file after anything is found.
Here's what I have so far:
echo off setLocal EnableDelayedExpansion
echo Checking for files >> C:\found.log for /f "tokens=* delims= " %%a in (list.txt) do ( set /a N+=1 set f!N!=%%a if exist f!N! echo f!N! was found >> C:\found.log
the phrase "checking for files" gets appended to the log, but it never lists any files it may have found. I want to get this part up and running before I add in the delete command. Where am I going wrong?
Summary: client running windows me our accounting software tends to lock up the system is there a way to check for memory leaks to show the coders so that they can repair this because at this time they claim i...
Summary: I need to write a bat file to check to see if a file is present with the current date. the file name will always be the same, except it will be followed by _042809 (where 042909 will always reflect th...
Summary: I am trying to get my program to check if a duplicate ISBN is being entered but cant seem to get it too work, might be the strcmp - can anyone talk me through how to sort this, Im a beginner at C pro...