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.
Batch file to check if HD formatted - overcoming A,R,F?
Name: Laird Bishop Date: April 13, 2000 at 10:59:17 Pacific
Comment:
I am attempting to add a portion to a batch file which will check to see if the c drive is formatted, and if not offer the option to format it. I am using the following sequence to attempt this: dir a:\ > c:\test.bat ifexist c:\test.bat goto formatted echo Drive C: was not detected etc.
The problem I am encountering is that the batch file is interrupted with the old "Invalid media type reading Drive C: Abort, Retry, Fail" message. Is there a way to use an errorlevel to trap this, or to pipe A into the command to automatically respond?
Summary: Hello to all DOS Expert here. I need to modify my batch file to check if the system date is a Saturday. If yes, execute program A else execute program B. Is there a way to do this in DOS? Please ad...
Summary: Could someone help me - I need a DOS batch file to check 4 files in a directory which are = today's date. If one or any of the files are not (older than 1 day) than call another batch file that I've c...
Summary: can someone help me i need a dos batch file to check 2 files timestamps are = today date. if one file is not than call another batchfile. thanx ...