Jump to content

Please need help. Problem when trying ejecting USB Flash memory


H.J.
 Share

Recommended Posts

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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...