I have on my drive Volumouse by NirSoft which is freeware. I also have Billy by Sheep Friends. I'm trying to make a launcher that will run Volumouse, then Billy. When I close Billy, Volumouse should close as well. The problem comes when I try to eject my device. Since Volumouse uses a dll, I have to wait about 3 minutes for Windows to let go of the dll file and eject it safely. I think the way to unregister a dll is using Regsvr32 but that does not work. Any help will really be appreciated.
do you have the first part done yet?
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.
"If you're not part of the solution, you're part of the precipitate."
I made something using Autoit and realized I couldn't eject the device. Then I changed my script to copy Volumouse to %temp%. After Billy closed it would run a vbs script that would wait the 3 min. and delete everything including itself. I thought that by running the vbs from the temp folder I could eject the drive, not true. Wscript keeps a lock on my drive until the vbs finishes. The reason I used the vbs is
cause I can't get the autoit script to delete itself. Also, the only scripting that I know (somewhat) is AutoIt and VBS (in case you have not realized it.)
---------------
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
"Sometimes I worry about being a success in a mediocre world." -- Lily Tomlin
"In three words I can sum up everything I've learned about life: it goes on." -- Robert Frost
"In three words I can sum up everything I've learned about life: baby ain't mine." -- Adam Holguin
It seems that I have quite similar problem.
You can of course run this script from temp..but then you'd have to delete it somehow
You can try with windows task scheduling.
Maybe something like running (hidden) cmd.exe and writing something like (I don't know batches):
"sleep \n delete\n" to it's standard input.
"Those people who think they know everything are a great annoyance to those of us who do." Asimov
I could do a NSIS one for you. I assume the process is:
Tell me if it's different.
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.
"If you're not part of the solution, you're part of the precipitate."
What I was hoping for is to be able to eject my drive without having to wait the 3 minutes. But now you got me thinking. executing the vbs (inside %temp%) from an AutoIt compiled exe locks up my drive until the vbs finishes. I wonder if running it from an nsis compiled script will have the same effect. Let me try it tonight and see what happens. I'll have to do a little reading first on using nsis, but it's ok.
---------------
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
"Sometimes I worry about being a success in a mediocre world." -- Lily Tomlin
"In three words I can sum up everything I've learned about life: it goes on." -- Robert Frost
"In three words I can sum up everything I've learned about life: baby ain't mine." -- Adam Holguin
I'm almost sure it will.
"Those people who think they know everything are a great annoyance to those of us who do." Asimov
Another process is locking something (probably Explorer). Use Process Explorer to find out what (search the forums for a link; there are a few references here). You can then know what to kill to unlock the handle, or you can use PE to close the handle directly.
To find out what's locking a file, go to Find -> Find Handle or DLL and search for your file. It will list every process with a handle matching what you searched for.
Vintage!