Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible loss of data using EJECTJS.BAT #61

Open
Qcdiri opened this issue Sep 1, 2024 · 0 comments
Open

Possible loss of data using EJECTJS.BAT #61

Qcdiri opened this issue Sep 1, 2024 · 0 comments

Comments

@Qcdiri
Copy link

Qcdiri commented Sep 1, 2024

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant