I have to agree with paulovey. You should rename the format.com to something else then creat a batch file in one of the path-ways and make it require 2 parameters so that it can't be run accidently.
Example: REN format.com noform.com
Example of bat file:
@echo off
cls
if %%2)==(MiggyD) goto OK1
goto Fini
:OK1
if %%1!==! goto DriveErr
call NoForm.com %1 %3 %4 %5 %6
goto Fini
riveErr
echo "you didn't put in a drive letter."
echo .
echo "Syntax: FORMAT drive: password [other options--/s | b | u | etc]
echo .
:Fini
REM **end of program**
That's the best you can hope for. I know this isn't hi-tech but hey! sometime the simplist things ARE the best way to go.
Good luck,
--MiggyD [sig]<p> <br><a href=mailto: > </a><br><a href= > </a><br>English is too hard to learn, the vowles change too much like come/home, comb/tomb, book/school, high/bye/sty, etc., etc. So should I say Geez or Sheez or Cheeze? hehe.[/sig]
You can pull in down from the microsoft site, I forget where, but if you search for ZAK or Zero Admin Kit from the main downloads page, it will take you there....
Ahhh... the format drive dialog box is generated by USER32. You could try disabling the DOS format as MiggyD suggested but in order to stop formats after right-clicking a drive icon you should use the Policy Editor (not my choice) or a third-party solution like ZAK, as Paulovey suggested (not my choice, either).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.