Directory and files there but can't delete, move or rename

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 Computer My Computer

At a glance

XP / Win7 x64 ProIntel Quad-Core Q9450 @ 3.2GHz2x2GB GSkill DDR2NVIDIA GeForce 8600 GTS (EVGA)
OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200

My Computer My Computer

At a glance

Windows 7 Ultimate 32bit SP1Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz4 GBATI Radeon HD 2600 Pro
Computer type
PC/Desktop
Computer 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(s)
ATI Radeon HD 2600 Pro
Monitor(s) Displays
Samsung SyncMaster 914v
Screen Resolution
1280 x 1024
Hard Drives
2/500GB each ... ST3500630AS ATA Device.
One is not connected
PSU
Rocketfish 700 W
Case
G.Skill Gigabyte Chassis
Keyboard
Standard PS/2 Keyboard
Mouse
Microsoft PS/2 Mouse
Internet Speed
DSL
Antivirus
Avira Internet Security
Browser
IE 11
Other Info
ATI HDMI Audio
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:

My Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
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 Computer My Computer

At a glance

XP / Win7 x64 ProIntel Quad-Core Q9450 @ 3.2GHz2x2GB GSkill DDR2NVIDIA GeForce 8600 GTS (EVGA)
OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
@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 Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
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 Computer My Computer

At a glance

XP / Win7 x64 ProIntel Quad-Core Q9450 @ 3.2GHz2x2GB GSkill DDR2NVIDIA GeForce 8600 GTS (EVGA)
OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
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.
 
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:
http://www.sevenforums.com/general-...ut-cant-delete-move-rename-2.html#post1986894

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 Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
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 Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
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 Computer My Computer

At a glance

XP / Win7 x64 ProIntel Quad-Core Q9450 @ 3.2GHz2x2GB GSkill DDR2NVIDIA GeForce 8600 GTS (EVGA)
OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
thx for the additional info :-)
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
No problem. It's little nuggets of knowledge like this that can help to understand how some of your go-to programs work.
 

My Computer My Computer

At a glance

XP / Win7 x64 ProIntel Quad-Core Q9450 @ 3.2GHz2x2GB GSkill DDR2NVIDIA GeForce 8600 GTS (EVGA)
OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
Back
Top