Home | Gallery | Forum | Services | Webmail | Archive | Links | Contact Us | About Us
OS2 World.Com Forum
OS2 World.Com Online Discussion Forum.
Index / OS/2 - General / Hardware
author message
Ejecting USB-devices
Post a new topic Reply to this Topic Printable Version of this Topic Forward this Topic to your Friend Topic Commands (for administrator or moderators only)
melf
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 212
since: 11 Apr, 2003
1. Ejecting USB-devices
Reply to this topic with quote Modify your message
last updated at 09 Sep, 2005 16:00 (1 times)
To eject an USB device, like my storagedevice or my digital camera, I have to open the drive that is asserted to it and right-click on the driverwindow-icon and then choose "eject". I would like to do this in an easier way, like pressing a widget.

The problem is that I don't manage to figure out what program it is that make this ejection.Is it the usbmonitor program, and in such case what sort of parameter should one use? Or has it somethin to do with LVM, like the "refresh removable media"?

Date: 09 Sep, 2005 on 14:17
kb0uov
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 9
since: 03 Jun, 2004
2. Re:Ejecting USB-devices
Reply to this topic with quote Modify your message
Try from a command line eject.exe x: eject.exe should be in x:\os2
If that works, then you can make a object for it with a pretty icon.

kb0uov

Date: 09 Sep, 2005 on 16:15
Pete
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 115
since: 14 Aug, 2003
3. Re:Ejecting USB-devices
Reply to this topic with quote Modify your message
Hi Melf

Simple answer: Create a program object on your Desktop/in your Drives folder/Where Ever you want and give it the Path and file name of the below script (file name usbeject.cmd, Path is wherever you keep it

/* USBEject.cmd */
/* Part of the "Nicki's USB Camera to Hard Disk Thingy" application */
/* run to Eject Removable Media either during to Refresh or at Exit of camera.exe */
Drive=Arg(1)

'@Eject ' || Drive || ':'


When you copy the above script and save it put a blank line on the end ie Press the Enter key at the end of the '@Eject ' || Drive line.

The above script should popup a "What Drive letter" entrybox - just enter the drive letter and omit the colon ie M not M: - so it is not limited to 1 drive.

Hope that helps.

Pete

Date: 09 Sep, 2005 on 16:26
melf
Normal member
in user

View this member's profileSearch all posts from this memberSend an email to this member
posts: 212
since: 11 Apr, 2003
4. Re:Ejecting USB-devices
Reply to this topic with quote Modify your message
Thank you guys, that was just what I needed!
Date: 09 Sep, 2005 on 23:13
Ejecting USB-devices
Post a new topic Reply to this Topic Printable Version of this Topic Forward this Topic to your Friend Topic Commands (for administrator or moderators only)
All times are CET+1. < Prev. | P. 1 | Next >
Go to:
 

Powered by UltraBoard 2000 Standard Edition,
Copyright © UltraScripts.com, Inc. 1999-2000.
Home | Gallery | Forums | Services | Webmail | Archive | Links | Contact Us | About Us
OS2 World.Com 2000-2004