| Windows 7: Directory and files there but can't delete, move or rename |
02 Jul 2012
|
#21 | | |
First sentence from the below link, "Run and RunOnce registry keys cause programs to run each time that a user logs on." Run and RunOnce Registry Keys (Windows)
The programs in the RunOnce key do not run until the user logs on. What you're talking about is things happening during your logon process once you've initiated it, which is what slows you getting to your desktop. However, none of them are run until you hit enter to log in (or once the logon process is started by some other means).
Everything is running as SYSTEM prior to a user logon, which is why/how you can do some interesting/nefarious tricks to get to a command prompt with full privileges before even logging on to the computer. | My System Specs |
| OS XP / Win7 x64 Pro CPU Intel Quad-Core Q9450 @ 3.2GHz Motherboard Asus P5-E Memory 2x2GB GSkill DDR2 Graphics Card NVIDIA GeForce 8600 GTS (EVGA) Monitor(s) Displays Dell 2408WFP Screen Resolution 1920x1200 |
02 Jul 2012
|
#22 | | Windows 7 Ultimate 32bit SP1 |
| My System Specs | | System Manufacturer/Model Number Bruce ... somewhere in his 40's OS Windows 7 Ultimate 32bit SP1 CPU Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz Motherboard INTEL/D975XBX2 Memory 4 GB Graphics Card ATI Radeon HD 2600 Pro Monitor(s) Displays Samsung SyncMaster 914v Screen Resolution 1280 x 1024 Keyboard Standard PS/2 Keyboard Mouse Microsoft PS/2 Mouse PSU Rocketfish 700 W Case G.Skill Gigabyte Chassis Hard Drives 2/500GB each ... ST3500630AS ATA Device.
One is not connected Internet Speed DSL Antivirus Avira Internet Security Browser IE 9 Other Info ATI HDMI Audio |
02 Jul 2012
|
#23 | | |

Quote: Originally Posted by FliGi7 First sentence from the below link, "Run and RunOnce registry keys cause programs to run each time that a user logs on." Run and RunOnce Registry Keys (Windows)
The programs in the RunOnce key do not run until the user logs on. What you're talking about is things happening during your logon process once you've initiated it, which is what slows you getting to your desktop. However, none of them are run until you hit enter to log in (or once the logon process is started by some other means).
Everything is running as SYSTEM prior to a user logon, which is why/how you can do some interesting/nefarious tricks to get to a command prompt with full privileges before even logging on to the computer.
edit: to test it I loaded a text editor into RunOnce. I logged off. Then logged in. The text editor came up, but the desktop, wallpaper, startup apps didn't. Which indicates to me the login hasn't really taken effect until the named process runs. Files ordinarily locked such as index.dat can be deleted.
Anyway, I don't really care how unlocker works as long is it does. A RunOnce key is a method that will work to delete certain classes of files. I know because I do it routinely.
edit2: Unlocker comes with both a hook file and a sys file. I'd venture a guess the hook is mainly for unlocking handles and the .sys does the heavy lifting. Device drivers can bypass most anything.
Last edited by MilesAhead; 02 Jul 2012 at 08:14 PM..
| My System Specs | | System Manufacturer/Model Number HP Media Center OS Windows 7 32 bit CPU AMD 5200+ dual core Memory 2 GB Graphics Card NVidia GeForce 6150SE 128 MB Monitor(s) Displays CRT Screen Resolution 1280x1024 Keyboard PS/2 Mouse PS/2 Wheel Mouse Hard Drives 500 GB Sata internal :
SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives Other Info SIIG USB 3.0 PCIexpress card. |
03 Jul 2012
|
#24 | | |

Quote: Originally Posted by MilesAhead 
Quote: Originally Posted by FliGi7 First sentence from the below link, "Run and RunOnce registry keys cause programs to run each time that a user logs on." Run and RunOnce Registry Keys (Windows)
The programs in the RunOnce key do not run until the user logs on. What you're talking about is things happening during your logon process once you've initiated it, which is what slows you getting to your desktop. However, none of them are run until you hit enter to log in (or once the logon process is started by some other means).
Everything is running as SYSTEM prior to a user logon, which is why/how you can do some interesting/nefarious tricks to get to a command prompt with full privileges before even logging on to the computer.
edit: to test it I loaded a text editor into RunOnce. I logged off. Then logged in. The text editor came up, but the desktop, wallpaper, startup apps didn't. Which indicates to me the login hasn't really taken effect until the named process runs. Files ordinarily locked such as index.dat can be deleted. I don't quite get what you're saying here. Do you mean you put a subkey into RunOnce to launch Notepad? Which RunOnce key? There is LocalMachine and CurrentUser, both of which load at different times in the logon process. I'm not sure why your desktop, wallpaper, and startup apps wouldn't come up after putting another value in RunOnce. Something sounds wrong there, if that's what you're saying. What do you mean "login hasn't really taken effect"? | My System Specs | | OS XP / Win7 x64 Pro CPU Intel Quad-Core Q9450 @ 3.2GHz Motherboard Asus P5-E Memory 2x2GB GSkill DDR2 Graphics Card NVIDIA GeForce 8600 GTS (EVGA) Monitor(s) Displays Dell 2408WFP Screen Resolution 1920x1200 |
03 Jul 2012
|
#25 | | |
@FliGi7 dude, I'm not going to go on with this thread that's been solved. If you want to argue with someone try a programming forum. You'll find lots of volunteers. If you want to know what happens, run your own experiments instead of quizzing me. | My System Specs | | System Manufacturer/Model Number HP Media Center OS Windows 7 32 bit CPU AMD 5200+ dual core Memory 2 GB Graphics Card NVidia GeForce 6150SE 128 MB Monitor(s) Displays CRT Screen Resolution 1280x1024 Keyboard PS/2 Mouse PS/2 Wheel Mouse Hard Drives 500 GB Sata internal :
SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives Other Info SIIG USB 3.0 PCIexpress card. |
03 Jul 2012
|
#26 | | |
Sorry, I didn't mean to make you get so defensive about this. I didn't know there was anything to actually argue. I was actually just genuinely interested in what you were talking about and what you meant in your statements. Obviously, I have done my own testing on this and am well aware of how Windows works. I was the one who clarified to you how the \Run keys work since you weren't aware. If I had realized you were going to go into passive-aggressive defense mode and be a dick about such simple questions I can assure you I wouldn't have asked. Many others on here are more than happy to discuss ancillary and pertinent topics, simply for the sake of discussion and learning, once the main problem of a thread is solved. That's one of the perks I find of this forum that everything doesn't just shut down once an initial question is answered. Obviously, you aren't one of those people which I'll note for future topics you're involved in. | My System Specs | | OS XP / Win7 x64 Pro CPU Intel Quad-Core Q9450 @ 3.2GHz Motherboard Asus P5-E Memory 2x2GB GSkill DDR2 Graphics Card NVIDIA GeForce 8600 GTS (EVGA) Monitor(s) Displays Dell 2408WFP Screen Resolution 1920x1200 |
03 Jul 2012
|
#27 | | Win7 x 6 PC's California, Florida, Boston |
Countless users find these threads during google searches. You can see them in here by the thousands signed in as Guests at any given time. For this reason it is good to add to the knowledge shared in a thread, even append newer fixes that have evolved often since beta days.
I was reading the thread with interest and learning. Let's never stop helping others learn, or penalize them for asking questions. Sometimes I answer endless circular questions just for practice at patience. | My System Specs | | |
04 Jul 2012
|
#28 | | |

Quote: Originally Posted by FliGi7 Sorry, I didn't mean to make you get so defensive about this. I didn't know there was anything to actually argue. I was actually just genuinely interested in what you were talking about and what you meant in your statements. Obviously, I have done my own testing on this and am well aware of how Windows works. I was the one who clarified to you how the \Run keys work since you weren't aware. If I had realized you were going to go into passive-aggressive defense mode and be a dick about such simple questions I can assure you I wouldn't have asked. Many others on here are more than happy to discuss ancillary and pertinent topics, simply for the sake of discussion and learning, once the main problem of a thread is solved. That's one of the perks I find of this forum that everything doesn't just shut down once an initial question is answered. Obviously, you aren't one of those people which I'll note for future topics you're involved in. 1) I already stated which key was used. See this thead: Directory and files there but can't delete, move or rename
2) I noted the files included with Unlocker make it obvious it gets around owership/file lock using a device driver. It may reboot as much to close programs that have a file in use as much as to trigger the device driver load. Since you don't mention this at all I have to surmise finding out how Unlocker works is not the real motivation for prolonging the thread.
3) When follow-ups include phrases like "you are not one of those people" to me that's personal attack and I see no point conversing further.
This is my last comment on this thread. Thanks for the joust. | My System Specs | | System Manufacturer/Model Number HP Media Center OS Windows 7 32 bit CPU AMD 5200+ dual core Memory 2 GB Graphics Card NVidia GeForce 6150SE 128 MB Monitor(s) Displays CRT Screen Resolution 1280x1024 Keyboard PS/2 Mouse PS/2 Wheel Mouse Hard Drives 500 GB Sata internal :
SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives Other Info SIIG USB 3.0 PCIexpress card. |
04 Jul 2012
|
#29 | | |
Hopefully the OP has unsubscribed to this thread and we are not filling his inbox with post notifications.
I've not played around with runonce much - I have deleted files that way (before I found unlocker). But seeing the comment about having an editor load via runonce made me wonder if the things that are listed under that key are blocking processes (perhaps that is not the correct term). It appears that they do "block" other things from happening until the exe exits.
It was interesting to see the "log on process" (for lack of another term) halt and wait for me to close notepad before it loaded (painted?) the desktop. I do find it odd that the runonce key at the HKLM level does not execute things until a after a user has been selected.
And using Process Monitor on Unlocker did not yield much insight for me :-(
...but I did learn a few things from this thread - so thanks to all that posted :-)
Just in case the OP is still lurking: I see that you solved the issue of Unlocker not showing up in the context menu by installing the 64bit version... but just so that you know - you can open Unlocker and painfully navigate to the file of interest via that GUI. You don't have to use Explorer's context menu. | My System Specs | | System Manufacturer/Model Number Employer provided Dell E6430 OS W7 Pro SP1 64bit CPU i5 3320M @ 2.6GHz Motherboard 0CPWYR Memory 4GB Graphics Card Intel HD Graphics 4000 Screen Resolution 1600 x 900 Hard Drives 119GB LITEONIT SSD Antivirus Employer mandated Symantec Endpoint Protection Browser Firefox, IE9 & IE8 via VM |
05 Jul 2012
|
#30 | | |
All of the entries in the HKLM...\RunOnce are loaded synchronously, as compared to all other Run or RunOnce keys which are loaded asynchronously, which means that all of its entries must finish loading before it progresses to all of the remaining Run* keys. This is why launching a program from there will halt the progression to the desktop until it is closed (the machine is waiting for the program to be closed before it continues as it interprets its closing as the task being completed). The advantage of doing this is that you can run programs like Unlocker that can perform actions before other exclusive services (like explorer.exe) are started (in this case, before explorer or any other process puts locks on certain files/folders) during the winlogon process.
Again, none of these things are performed via Run(Once) keys until the system performs the winlogon process. Winlogon isn't started until a user selects their username and logs in (or if the machine is automatically set to log in then it will start as soon as its ready).
Now, you can, however, start services prior to a user's login via the RunServices(Once) keys. | My System Specs | | OS XP / Win7 x64 Pro CPU Intel Quad-Core Q9450 @ 3.2GHz Motherboard Asus P5-E Memory 2x2GB GSkill DDR2 Graphics Card NVIDIA GeForce 8600 GTS (EVGA) Monitor(s) Displays Dell 2408WFP Screen Resolution 1920x1200 Directory and files there but can't delete, move or rename problems? All times are GMT -5. The time now is 12:16 AM. | |