Delete Files On Reboot Win 7

/ Comments off
Win

I think what you are looking to do is schedule a file to be deleted on reboot from the command line? As it happens, I had a, which was solved by finding this. It also has assembler source code with it, should you wish to modify it in some way as I did (I wanted to get rid of the alert box that announced success). 3kb in size, and does exactly as it says on the tin, using the MoveFileEX API call The thing is, the batchfile idea doesn't always work. It depends on which file you're looking to delete.

Delete Folder On Reboot

EMCO MoveOnBoot is a freeware tool that allows you to move, rename and delete locked files and locked folders on the next Windows reboot.

Some of them load in at such time as before logon scripts or startup programs are run. You can't delete winlogon.

If you do it will render your system completely useless. If you download the command line tool dellater from the link I gave, place it in your c: windows folder, then go to start-run- and type 'dellater C: WINDOWS system32 winlogon.exe' (without the quotes - or you could do it from a cmd window) and hit enter. File should then be scheduled for deletion on reboot. I warn you though, if it does get deleted, you'll be sorry unless you know how to repair it. Winlogon.exe is an essential system file. Are you trying to remove something running under winlogon?

If so, deleting winlogon itself is going about it in completely the wrong way. It can't be done without calling the 'moveFileEx' API, as WinLogon is one of those files that's executed right at the beginning of the startup sequence. The only real way to call said API is through programming or scripting in a high level language - and even that might not be called early enough. It's not a program as such though.

Files

It's a simple command line utility of the type that can be found natively in the windows and system32 folders anyway. Really, it won't get any simpler, easier, or closer to 'not using a program' than that - a short little 3KB script in assembler, aessmbled into an executable single purpose utility. If you wanted to, you could take the assembler code, assemble it yourself with the assembler it was written for, and then use it, upon which time, appart from the assembler programming, you could say you'd done it from scratch.

Balabolka

Even batch files use such programs as the one I gave you - they come pre-installed in XP. I can think of better experiments than deleting winlogon.exe though. Well, there's all manner of registry hacks. You could manually change your bootloader or hack the resources of explorer.exe you could see if it floats. All would yield potentially far more unexpected results than deleting winlogon. Really just use your imagination.

Maybe infect it with something like aurora and try to clean it up yourself manualy, devise some interesting practical jokes, try hacking into it and gaining admin control from a remote machine. Whatever really. It's your machine, it's your time, and it's your work to reformat it - your choice.