You are here

Starting okay, what about shutting down?

9 posts / 0 new
Last post
death au
Offline
Last seen: 18 years 1 month ago
Joined: 2006-10-25 21:23
Starting okay, what about shutting down?

I'm using my portable applications more and more these days, even using the apps from my portable hard drive on my main PC at home.
There's plenty of programs that allow me to start my portable apps when I plug my hard drive in, but what about when I want to unplug my hard drive? Is there any application out there that can keep track of all the handles to the portable disk and either shut them down, or prompt me to shut them down? I would prefer if it didn't just kill the processes, but quit the associated programs cleanly. (I've been trying to kill stuff with a batch file, but it's not really what I want to do).
Any suggestions or ideas on existing programs, or ways to make my portable disk shutdown process quick and easy would be appreciated.
Thanks - and keep up the good work!

Bahamut
Bahamut's picture
Offline
Last seen: 13 years 1 month ago
Joined: 2006-04-07 08:44
And if vee take a look at

And if vee take a look at zee silver bar at zee top of zee page, vee see zee search bar at zee right.

Vintage!

death au
Offline
Last seen: 18 years 1 month ago
Joined: 2006-10-25 21:23
And vat shoult I be searchink fur?

I tried doing a couple of searches, but didn't find what I wanted. I'm already using SysInternals to find those pesky handles that make my drive not want to disconnect. Other apps suggested require admin privlages, or won't work on what Windows sees as "Local Drives" which it does my portable hard drive.
And besides, most of them are just for killing proceeses or handles, not what I'm after at all.

What I really want is a program that will catch all programs opening of my USB Hard Drive, and tell them to quit when I ask it to. Cleanly. Not just killing the process. I'm not even sure if this is possible under windows. I know in linux you can just sent a process the SIGQUIT signal. It should be, though, because windows tells programs to quit when you hit shutdown.
I just want to shutdown my portable drive...

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 3 months ago
Joined: 2006-01-06 21:27
Zis haz been mentioned befur

What I really want is a program that will catch all programs opening of my USB Hard Drive, and tell them to quit when I ask it to.
And Renè said this was possible (CMIIW).

Cleanly. Not just killing the process.
You would probably need someone experienced in WinAPI programming to answer this.
----
R McCue
Cube Games
People who didn't need people needed people around to know that they were
the kind of people who didn't need people.
(Maskerade)

"If you're not part of the solution, you're part of the precipitate."

azjerry
Offline
Last seen: 7 years 3 months ago
Joined: 2005-12-09 12:42
SysInternals pskill and XP taskkill

command line utilities by default issue a program close (not kill) to the running process.

In a batch file:
- issue a default taskkill or pskill for any process that might be running off the flash drive
taskkill /t /im firefox.exe > nul 2>&1

- issue second command with the "kill" for each process.
taskkill /t /f /im firefox.exe > nul 2>&1

This assumes that each process from the flash drive is not and could not be running from the hard drive.

simonh
Offline
Last seen: 15 years 1 month ago
Joined: 2006-11-26 11:18
unlocking a drive

Google unlocker.exe and download it. It adds an entry to the context menu. When you right-click on the drive, it lists all handles and gives you the option to release them individually or all at once.

cavedeamon
Offline
Last seen: 16 years 8 months ago
Joined: 2006-05-20 21:58
google unlocker???

This is interesting can you post a link to where i can get that program??

----
eagle scout
Technology can solve all our problems, like using a laptop for a space heater in a cold tent in the middle of winter.

Wikipedia
----

John T. Haller
John T. Haller's picture
Offline
Last seen: 8 hours 17 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Google unlocker

He said to google (as in 'search for it') unlocker. So, browse to Google... and type in the word 'unlocker'.

Sometimes, the impossible can become possible, if you're awesome!

Bahamut
Bahamut's picture
Offline
Last seen: 13 years 1 month ago
Joined: 2006-04-07 08:44
I Googled it, and got this

I Googled it, and got this (*gulp*):
http://www.auditmypc.com/process/unlocker.asp

Sysinternals' Process Explorer can be used to search for processes using files on your drive. Find -> Find handle or DLL, and search for your drive's letter. Explorer can almost always be restarted safely (but, of course, its windows will close), and if it's because of some other program using a file, you can simply close the file within that program.
http://www.sysinternals.com/utilities/processexplorer.html

Vintage!

Topic locked