Welcome Guest.   Make a donation to an author on the site November 22, 2014, 10:39:21 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
View the new Member Awards and Badges page.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: Terminate processes and remove USB  (Read 15285 times)
vevola
Charter Member
***
Posts: 88


VeVoLa

View Profile Give some DonationCredits to this forum member
« on: April 29, 2006, 11:48:32 AM »

Often using my USP device, I'mnot ableto remove it because something's open (sometimes it's just Explorer or something like that).

I'd like a program that could substitute the Remove USB Device icon and function of Windows, and substitute it with something that would automatically terminate all processes running via USB (whether it be an exe or a doc) and detach hassle-free my USB device.

First... would this be safe? and is it possible?

Thanks!
vevola
Logged
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: May 01, 2006, 01:25:25 PM »

 smiley Try this one!

CloseAndEject [/url] - Close all open files before ejecting a drive.



Features:
- Press Eject to close all handles and eject the drive.
- Double leftclick a line to activate the process.
- Double rightclick a line to kill the process.
- Command line: CloseAndEject.exe <Drives> Eject
     Example: CloseAndEject.exe DE Eject
     Closes open files on drive D and E, ejects and exits.
- Uses Handle.exe by http://www.sysinternals.com/utilities/handle.html
- Use with caution! Closing handles can cause bluescreens!

You'll find the downloads and more info at 1 Hour Software by Skrommel.

Skrommel
« Last Edit: May 01, 2006, 01:46:39 PM by skrommel » Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
vevola
Charter Member
***
Posts: 88


VeVoLa

View Profile Give some DonationCredits to this forum member
« Reply #2 on: May 02, 2006, 04:26:15 PM »

you're a genius skrommel!

would it be possible to:
- iconize to system tray;
- auto-refresh;
- on "EJECT" put OK/CANCEL;
- make it easier to distinguish which drive (perhaps a pulldown menu, where you choose which drive, and upon choice you see only what is running from there);

By the way, I'm using PStart off a 2GB Micro Cruzer and it wasn't shown, nor was it closed when ejected. to C&E it says that the drive was ejected, but in fact it closed everything except PStart (which it didn't even see) and it did not eject my drive.

thanks guy! we'll get you some points!  Wink
-vevola


Logged
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: May 03, 2006, 05:31:25 AM »

 tellme CloseAndEject uses Handles.exe from SysInternals, and it didn't find my USB by default either.

Would it be too much trouble to ask you to send me the file handles.txt from your CloseAndEject folder?

Skrommel
« Last Edit: May 03, 2006, 05:33:31 AM by skrommel » Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
Cavalcader
Charter Member
***
Posts: 192


Live Long & Prosper

View Profile Give some DonationCredits to this forum member
« Reply #4 on: May 07, 2006, 03:44:34 PM »

Another possibility is Unlocker -- a very cool ShellExtension.
Logged

My Linguistic Profile:
  40% General American English
  30% Yankee
  20% Dixie

What Kind of American English Do You Speak?
Carol Haynes
Waffles for England (patent pending)
Global Moderator
*****
Posts: 7,958



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: May 07, 2006, 07:26:57 PM »

I must admit I think unlocker is great (and I use it a lot) but don't be too complacent with it - I'm not sure how cleanly it shuts down file connections with applications and with a USB connection it may lead to data corruption. It is great in a crisis though.
Logged

Cavalcader
Charter Member
***
Posts: 192


Live Long & Prosper

View Profile Give some DonationCredits to this forum member
« Reply #6 on: May 08, 2006, 10:53:56 AM »

I'm not sure how cleanly it shuts down file connections with applications
True. That's a consideration with any of the techniques above -- they're all nonstandard methods, but one bonus of Unlocker is that it shows the name of the program that has the file lock (without listing a bunch of other stuff). Then you still have the option to close that program normally. smiley
Logged

My Linguistic Profile:
  40% General American English
  30% Yankee
  20% Dixie

What Kind of American English Do You Speak?
urlwolf
Charter Member
***
Posts: 1,784



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #7 on: May 16, 2006, 07:31:43 AM »

hmm, closeandEject doesn't see my external HD (d:) at all.
a pity. Maybe it's handle.exe's fault? By the way, i extracted handle.exe in the same dir where CaE is... not sure if that's enough or if I should add it somewhere in the PATH...
Logged
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #8 on: June 01, 2006, 04:03:51 AM »

There's also OpenedFilesView at http://www.nirsoft.net/utils/opened_files_view.html.

Skrommel
Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.034s | Server load: 0 ]