am632 Posted September 2, 2010 Share Posted September 2, 2010 Hi, Im wanting to make a tool that removes a specific scarware application but im stuck and dont know how to continue, i think a search should go in here somewhere but i dont know how to do that. This is what i am trying to automate... http://www.2-spyware.com/remove-security-suite.html Here is a snippet of the code im using. If FileExists(@UserProfileDir & "\Local Settings\Application Data" & "\*\*shdw.exe") Then DirRemove(@UserProfileDir & "\Local Settings\Application Data" & "\*\*shdw.exe", 1) EndIf also, how would i go about removing a registry key with the same filename which was random such as "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run "[random]" Thanks Link to comment Share on other sites More sharing options...
wakillon Posted September 2, 2010 Share Posted September 2, 2010 Start with The function "FileFindFirstFile" in autoit help ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
am632 Posted September 2, 2010 Author Share Posted September 2, 2010 thanks, ill hav a look at this Link to comment Share on other sites More sharing options...
am632 Posted September 2, 2010 Author Share Posted September 2, 2010 ok, I've looked at the FileFindFirstFile and have come up with this.... ;search for security suite exe $search = FileFindFirstFile(@UserProfileDir & "\Local Settings\Application Data\*\*shdw.exe") ; Check if the search was successful If $search = -1 Then MsgBox(0, "Error", "Security Suite was not found on the system") Exit EndIf While 1 $file = FileFindNextFile($search) If @error Then ExitLoop MsgBox(4096, "File:", $file) WEnd ; Close the search handle FileClose($search) when ever i run the program I get the "error - security suite was not found on the system" even if i have a folder named 'ramdomblabla' in the local settings\application data folder with an exe named blashdw.exe? any ideas? thanks Link to comment Share on other sites More sharing options...
AlmarM Posted September 2, 2010 Share Posted September 2, 2010 Try _FileListToArray? Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
am632 Posted September 2, 2010 Author Share Posted September 2, 2010 Try _FileListToArray? Thanks for this. I've had a quick look at this but im not sure how to use this for my problem with the folder and file name being random. could you possibly elaborate please?thanks for the help guys Link to comment Share on other sites More sharing options...
am632 Posted September 2, 2010 Author Share Posted September 2, 2010 AnyOne Pleaseee? Link to comment Share on other sites More sharing options...
Bert Posted September 2, 2010 Share Posted September 2, 2010 You may want to take AutoIt 1 2 3. The class is located in the examples area. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
am632 Posted September 2, 2010 Author Share Posted September 2, 2010 Thankyou I'll have alook at this Link to comment Share on other sites More sharing options...
am632 Posted September 2, 2010 Author Share Posted September 2, 2010 I checked out the autoit 123 but this jus seems to be the same as whats in the help files but doesnt explain what i need to know, thanks anyway tho. anyone else know how to do this? thanks Link to comment Share on other sites More sharing options...
Bert Posted September 2, 2010 Share Posted September 2, 2010 (edited) I rereading your post, you should look at how to populate an array. Second, look how to search the array. The array commands show examples on just how to do this. Edited September 2, 2010 by MPH The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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