Skip to content

Possible loss of data using EJECTJS.BAT #61

@Qcdiri

Description

@Qcdiri

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions