Run VB6 Program At SHUTDOWN
Hello,
I wrote a code to Lock Folders on my disk. I wanted to trigger it when I SHUTDOWN my computer.
Is it possible ?? Is there any registry key which will help me ?
I dont want my program to run all throughout. It should only start when Shutdown of the computer is going to take place.
Thanks in Advance !!
Re: Run VB6 Program At SHUTDOWN
Find the gpedit.msc on your machine and open it. (click on Start Button. Type gpedit.msc in the run)
Under the Computer configuration in the Windows Settings folder, you can specify scripts to run at Startup/Shutdown. Under the User configuration in the Windows Settings folder you can specify scripts to run at Logon/Logoff. Use the Logoff script if your program needs network access.
Re: Open Program when Computer SHUTSDOWN -- VB6
When the MS OS decides to shut down, it starts removing programs from memory, then services and such, so I doubt that it will allow your program to run at shutdown. So you may be stuck with having it running prior to the OS shutting down. Then, since you are depending upon the OS to send you a message that it is shutting down, it may just terminate your program if you take too long doing what you want to do. Another consideration is what happens to the OS if those folders are needed by the system (See BSOD). After that, if your program does not run at startup, how do those folder get unlocked?
Now, if this is for an application then why don't you lock the folders when the application shuts down and unlock them when it starts up???
Good Luck
Re: Run VB6 Program At SHUTDOWN
Duplicate Threads Merged
One topic, one forum section, one thread please.
Re: Run VB6 Program At SHUTDOWN
no..its actually for something else....my brother often wants to login onto my computer....i dont want him to see my files.....i created another user for him.....so whenever I log off.....i wanted to lock the files........
I had a simpler method.....that is.....on startup(other user)....the folders get locked....but I can only lock them as an Admin.....thats why !!!
Re: Run VB6 Program At SHUTDOWN
@HAck.....sorry......I actually didnt kno which Forum to post it in...!!
Re: Run VB6 Program At SHUTDOWN
Re: Run VB6 Program At SHUTDOWN
Yes...I did....!!!!! Thnx !!!!