ashley Posted July 26, 2007 Share Posted July 26, 2007 (edited) ok i am wanting to create a program to search for programs on anybodies hard drive....So what do i need...A script/code that searches the hole hard drive for a program that is listed inside the script...A good auto update code... Done... For this program only... can't figure rest out...*And my GUI Done... IF anyone could make it vista style like neosearch please do*Any help would be nice thanks... Edited July 26, 2007 by ashley Free icons for your programs Link to comment Share on other sites More sharing options...
WolfWorld Posted July 26, 2007 Share Posted July 26, 2007 (edited) ...Srry Edited July 26, 2007 by athiwatc Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets! Link to comment Share on other sites More sharing options...
ashley Posted July 26, 2007 Author Share Posted July 26, 2007 ...Srrywhat did u do Free icons for your programs Link to comment Share on other sites More sharing options...
KJohn Posted July 26, 2007 Share Posted July 26, 2007 ok i am wanting to create a program to search for programs on anybodies hard drive....So what do i need...A script/code that searches the hole hard drive for a program that is listed inside the script...A good auto update code....And my GUI * working on this now will post asap...*Any help would be nice thanks...Code to return the program:dir /s /b neoSearch.exe >C:\output.txt- Use the @Comspec to do it- use the program name instead of neoSearch.exethis will return all paths that contain the file you are searching forNext use the code I sent you to autoupdate it...Ask me more for clarification... Link to comment Share on other sites More sharing options...
ashley Posted July 26, 2007 Author Share Posted July 26, 2007 (edited) Code to return the program: dir /s /b neoSearch.exe >C:\output.txt - Use the @Comspec to do it - use the program name instead of neoSearch.exe this will return all paths that contain the file you are searching for Next use the code I sent you to autoupdate it... Ask me more for clarification...sorry i dont under stand im new to autoit... EDIT: This is what i have for now... NEW VERISON POST #10 i get an error even tho i used koda.. Edited July 26, 2007 by ashley Free icons for your programs Link to comment Share on other sites More sharing options...
KJohn Posted July 26, 2007 Share Posted July 26, 2007 sorry i dont under stand im new to autoit...$filename = "program.exe"Run (@Comspec &" /c dir /s /b " &$filename &" >C:\output.txt")Now open C:\output.txt to see the full path of all the programs...Open it in read mode using fileopenand read line by line...replace @scriptfullpath in the code I sent you with this path and the http:// address with the address of the same file on an online server...Basically that's it... I've go offline now... there are knowledgable ppl here who can help you write the code for what I've just stated... In the rare case no one is able to help, I'll get back to you asap... ok? Link to comment Share on other sites More sharing options...
KJohn Posted July 26, 2007 Share Posted July 26, 2007 InetGetSize("http://www.autoitscript.com/forum/index.php?act=attach&type=post&id=15525")I don't know if this will return the program size correctly... can someone please check this out for ashley? Link to comment Share on other sites More sharing options...
ashley Posted July 26, 2007 Author Share Posted July 26, 2007 (edited) $filename = "program.exe" Run (@Comspec &" /c dir /s /b " &$filename &" >C:\output.txt") Now open C:\output.txt to see the full path of all the programs... Open it in read mode using fileopen and read line by line... replace @scriptfullpath in the code I sent you with this path and the http:// address with the address of the same file on an online server... Basically that's it... I've go offline now... there are knowledgable ppl here who can help you write the code for what I've just stated... In the rare case no one is able to help, I'll get back to you asap... ok?thanks... I fixed one error.. here is what i have now NEW VERISON POST #10 Edited July 26, 2007 by ashley Free icons for your programs Link to comment Share on other sites More sharing options...
ashley Posted July 26, 2007 Author Share Posted July 26, 2007 (edited) Updated... Working update NEW VERSION POST #10 any help please Edited July 26, 2007 by ashley Free icons for your programs Link to comment Share on other sites More sharing options...
ashley Posted July 26, 2007 Author Share Posted July 26, 2007 NEW VERISON expandcollapse popup#cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.2.0 Author: ashley Script Function: Ashley's program updater #ce ---------------------------------------------------------------------------- #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Main = GUICreate("Program updater", 476, 295, 190, 112) $Group1 = GUICtrlCreateGroup("Porgrams found", 24, 48, 441, 97) GUICtrlCreateGroup("", -99, -99, 1, 1) $Group2 = GUICtrlCreateGroup("Programs that need updates", 24, 160, 441, 73) GUICtrlCreateGroup("", -99, -99, 1, 1) $welcome = GUICtrlCreateLabel(" Welcome to Program updater this program will search your hard drive for all of my programs...", 24, 8, 441, 17) $Label1 = GUICtrlCreateLabel("any programs that you do have will be checked for an update", 24, 24, 293, 17) $search = GUICtrlCreateButton("Search", 8, 264, 75, 25, BitOR($BS_DEFPUSHBUTTON,$WS_BORDER,$WS_CLIPSIBLINGS), $WS_EX_STATICEDGE) $Update = GUICtrlCreateButton("Check for update", 344, 264, 115, 25, BitOR($BS_DEFPUSHBUTTON,$WS_BORDER,$WS_CLIPSIBLINGS), $WS_EX_STATICEDGE) $Progress1 = GUICtrlCreateProgress(88, 264, 249, 25, BitOR($PBS_SMOOTH,$PBS_MARQUEE,$WS_BORDER,$WS_CLIPSIBLINGS)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Update If InetGetSize("http://ashautoit.googlepages.com/Typepad.exe") <> FileGetSize(@ScriptFullPath) Then Run(@ProgramFilesDir&"\Internet Explorer\iexplore.exe http://ashautoit.googlepages.com/Typepad.exe") EndIf EndSwitch WEnd thanks for the help so far still need more tho... Free icons for your programs Link to comment Share on other sites More sharing options...
WolfWorld Posted July 27, 2007 Share Posted July 27, 2007 C:\Users\Athiwatc\Desktop\Image_Get_info - Copy - Copy.au3(23,84) : WARNING: $PBS_MARQUEE: possibly used before declaration. $Progress1 = GUICtrlCreateProgress(88, 264, 249, 25, BitOR($PBS_SMOOTH,$PBS_MARQUEE, Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets! Link to comment Share on other sites More sharing options...
WolfWorld Posted July 27, 2007 Share Posted July 27, 2007 (edited) Here The Search DownloadNow You Can Use NeoIndex or MineIf MyJust Create A File Name Setting.ini In @AppDir & '\OpenIndex'Now In Side Type[index]Path=What Ever You Want Split By CommaNow Run OpenIndex.exe /IndexNow You Will Get A List Of Song In OpenIndex\IndexOther Option IniWrite($OpenIndex_Dir & 'Setting.Ini', 'Index', 'System', $Gui_Unchecked);For System FileIniWrite($OpenIndex_Dir & 'Setting.Ini', 'Index', 'Meta', $Gui_Unchecked);For Song MetaIt Hard Because It Not DOS Edited July 27, 2007 by athiwatc Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets! Link to comment Share on other sites More sharing options...
ashley Posted July 27, 2007 Author Share Posted July 27, 2007 C:\Users\Athiwatc\Desktop\Image_Get_info - Copy - Copy.au3(23,84) : WARNING: $PBS_MARQUEE: possibly used before declaration.$Progress1 = GUICtrlCreateProgress(88, 264, 249, 25, BitOR($PBS_SMOOTH,$PBS_MARQUEE,how do i fix it... Free icons for your programs Link to comment Share on other sites More sharing options...
ashley Posted July 27, 2007 Author Share Posted July 27, 2007 Here The Search Download Now You Can Use NeoIndex or Mine If My Just Create A File Name Setting.ini In @AppDir & '\OpenIndex' Now In Side Type [index] Path=What Ever You Want Split By Comma Now Run OpenIndex.exe /Index Now You Will Get A List Of Song In OpenIndex\Index Other Option IniWrite($OpenIndex_Dir & 'Setting.Ini', 'Index', 'System', $Gui_Unchecked);For System File IniWrite($OpenIndex_Dir & 'Setting.Ini', 'Index', 'Meta', $Gui_Unchecked);For Song Meta It Hard Because It Not DOS sorry not what i need.. i only need the bit to search programs that are in a ini file... and programs that are in the ini file that are found on the harddrive show 9up in the correct area... and then update if needed.... when not found.... it will ask you to download it... Free icons for your programs Link to comment Share on other sites More sharing options...
mrbond007 Posted July 27, 2007 Share Posted July 27, 2007 sorry not what i need.. i only need the bit to search programs that are in a ini file...and programs that are in the ini file that are found on the harddrive show 9up in the correct area... and then update if needed.... when not found.... it will ask you to download it...For ini files you must use IniReadSection and IniReadSectionNames. now if the programs are already installed on your harddrive you can use regread to read this key "HKLM\software\microsoft\windows\currentversion\app paths" it containes sub keys and each one represents an already installed program on your computer, or you can use Larry's File Search function if the program is not found than you use InetGet to download it. Projects : Space Regain - Memory Fusion - PWGT - Chip-ITGames : BrainPain - BrainPain Director's Cut - ProSpeed Games Pack (New)Vista vs XP : the forbidden fight Link to comment Share on other sites More sharing options...
KJohn Posted July 31, 2007 Share Posted July 31, 2007 Try replacing the @ScriptFullPath with the full path of your program on the user's HDD. Repeat similarly for all your program paths.Case $Update If InetGetSize("http://ashautoit.googlepages.com/Typepad.exe") <> FileGetSize(@ScriptFullPath) Then Run(@ProgramFilesDir&"\Internet Explorer\iexplore.exe http://ashautoit.googlepages.com/Typepad.exe")EndIf Link to comment Share on other sites More sharing options...
ashley Posted July 31, 2007 Author Share Posted July 31, 2007 Try replacing the @ScriptFullPath with the full path of your program on the user's HDD. Repeat similarly for all your program paths.ok thanks... but how do i knw were there gona save em... Free icons for your programs 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