General discussion
February 15, 2002 at 01:26 AM
dan_hammock

Batch file to lock hard drive.

by dan_hammock . Updated 24 years, 6 months ago

We use a program called Wipeinfo (Norton Utilities 8.0) to wipe hard drives. (Program writes 1’s & 0’s so no data can be recovered from the drives.) I have created a batch file to automate the process. The HD has to be locked to enable direct disk access. When it tries to lock the drive it prompts for yes or no.

How can I automate the locking so it does not prompt for yes or no?

Batch file:
format c: /autotest
format d: /autotest
format e: /autotest
format f: /autotest
lock c:
lockd:
lock e:
lock f:
wipeinfo c: /GOV:5 /BATCH
wipeinfo d: /GOV:5 /BATCH
wipeinfo e: /GOV:5 /BATCH
wipeinfo f: /GOV:5 /BATCH

This discussion is locked

All Comments