Tapeworm Posted April 22, 2008 Share 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... Link to comment Share on other sites More sharing options...
zorphnog Posted April 22, 2008 Share Posted April 22, 2008 Depends on the OS. In XP I add my scripts through group policy (User Configuration->Windows Settings->Scripts (Logon/Logoff)). Link to comment Share on other sites More sharing options...
Tapeworm Posted April 22, 2008 Author Share Posted April 22, 2008 hm didnt think of that, its "gpedit.msc" right? Link to comment Share on other sites More sharing options...
Swift Posted April 22, 2008 Share 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! Link to comment Share on other sites More sharing options...
Tapeworm Posted April 22, 2008 Author Share Posted April 22, 2008 (edited) alright, thanks ill have a look into it Edited April 22, 2008 by tapeworm09 Link to comment Share on other sites More sharing options...
zorphnog Posted April 22, 2008 Share Posted April 22, 2008 GUIRegistry? Do you mean GUIRegisterMsg with WM_QUERYENDSESSION? Link to comment Share on other sites More sharing options...
Swift Posted April 23, 2008 Share Posted April 23, 2008 Yep! My bad...short-term memory loss! Link to comment Share on other sites More sharing options...
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