Jump to content
Sign in to follow this  
H.J.

Please need help. Problem when trying ejecting USB Flash memory

Recommended Posts

H.J.

Hi all,

In My computer there is two drive ( e: letter is CD-ROM ) and ( f: letter is Flah memory ), I tried the script bellow to eject CD-ROM it's working :

The Script is :

$ObjShell = ObjCreate("Shell.Application")

$ObjShell.NameSpace(17).ParseName("e:\").InvokeVerb("E&ject") ; For CD-ROM Try.

But if I use the same script to eject the Flash Memory as showing bellow, It's not working and giving error message " Cannot Eject Volume: "

The Script is :

$ObjShell = ObjCreate("Shell.Application")

$ObjShell.NameSpace(17).ParseName("f:\").InvokeVerb("E&ject") ; For Flash Memory.

What is the problem and how can be solved.

Best regards

h.j.

post-12423-1217721270_thumb.jpg

Edited by H.J.

Share this post


Link to post
Share on other sites
theguy0000

Does the account the script is running on have administrator rights?


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×