Tapeworm Posted April 22, 2008 Posted April 22, 2008 Im trying to make a script that deletes a certain folder on logoff. And i have no idea how to make a script run on logoff... Anyone got any ideas on how to accomplish this? i need something like: Filecopy("name.exe", @StartupCommonDir & "\name.exe") just that i need it for "@Shutdowncommondir", which i know doesnt exist...
zorphnog Posted April 22, 2008 Posted April 22, 2008 Depends on the OS. In XP I add my scripts through group policy (User Configuration->Windows Settings->Scripts (Logon/Logoff)).
Tapeworm Posted April 22, 2008 Author Posted April 22, 2008 hm didnt think of that, its "gpedit.msc" right?
Swift Posted April 22, 2008 Posted April 22, 2008 This question has already been asked by me. Do a forum search for this. Helpful information: To use this method, you must create a gui window (Don't show it if nessesary) And then use GUIRegistry() to set this specific code!
Tapeworm Posted April 22, 2008 Author Posted April 22, 2008 (edited) alright, thanks ill have a look into it Edited April 22, 2008 by tapeworm09
zorphnog Posted April 22, 2008 Posted April 22, 2008 GUIRegistry? Do you mean GUIRegisterMsg with WM_QUERYENDSESSION?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now