H.J. Posted August 2, 2008 Share Posted August 2, 2008 (edited) 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. Edited August 3, 2008 by H.J. Link to comment Share on other sites More sharing options...
theguy0000 Posted August 3, 2008 Share Posted August 3, 2008 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now