-
Notifications
You must be signed in to change notification settings - Fork 887
Description
WARNING: I would be VERY VERY VERY CAREFUL if you use 'ejectjs.bat' !!!
I added code to show the verb that WOULD BE EXECUTED, and, actually,
all the verbs, and what I found was VERY DISTURBING:
ran ejectjs.bat i (drive i is my DVD burner w/a disc in it)
wipe0a Verb Erase this disc
@@@@@@@@@@@@@@@
wipe0b count 11
wipe0c index 4
wipe1 Open AutoPlay...
wipe2
wipe3 Acronis Recovery
wipe4
wipe5 Format...
wipe6 Eject
wipe7 Erase this disc <==
wipe8 Copy
wipe9 Create shortcut
wipe10 Properties
wipe11
WARNING: something other than Eject !!!
My added code, below, placed before the statement "verb.DoIt();",
POSSIBLY(?) prevented it from running (ie: the last message):
if(
verb.Name.replace("&","") != /Eject/
) {
WScript.Echo("WARNING: something other than Eject !!! ");
WScript.Quit(3);
}
NOTE: above EJECT s/b wrapped in single-quotes.
Needless to say, I will NOT ever be using this !!!
Fortunately, I used a mostly blank disc for this test.
Sure glad I did so, tho I have multiple backups anyway;
others may not be so fortunate. YOU HAVE BEEN WARNED !