reaper1gulf Posted September 18, 2013 Share Posted September 18, 2013 hey guys, i just started scripting and i'm trying to find a way to get the automation to navigate to the %userprofile%appdatalocaltemp and delete everything in it. I've got that part down, but the part i can't figure out is how to get it to close the temp folder. Here is a the code. ;function Close File In Use dialog box Func CloseFIN() Send("{TAB}{SPACE}") Sleep(1000) EndFunc ;open windows explorer, navigates to user's temp folder, deletes all and skips files in use Send("#e") Sleep(1000) Send("!d") Sleep(1000) Send("%userprofile%AppDataLocalTemp{enter}") Sleep(1000) Send("^a") Send("+{delete}") Sleep(1000) Send("!y") Sleep(1000) While 1 If WinExists("File In Use") Then CloseFIN() Else EndIf WEnd Opt("WinTitleMatchMode",4) $WinList=WinList("classname=ExploreWClass") For $b=1 to $WinList[0][0] WinClose($WinList[$b][0]) Next Exit Link to comment Share on other sites More sharing options...
Solution Chimaera Posted September 18, 2013 Solution Share Posted September 18, 2013 Welcome to the forum lots of examples around here is a recent one that covers all profiles '?do=embed' frameborder='0' data-embedContent>> If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
corgano Posted September 18, 2013 Share Posted September 18, 2013 filedelete(@UserProfileDir&"appdatalocaltemp") dircreate(@UserProfileDir&"appdatalocaltemp") Google: Site:Autoitscript.com searchphraseshere 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e 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