Jump to content

Search for programs...


Recommended Posts

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 by ashley
Link to comment
Share on other sites

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.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...

Link to comment
Share on other sites

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 by ashley
Link to comment
Share on other sites

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 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?

Link to comment
Share on other sites

$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 by ashley
Link to comment
Share on other sites

NEW VERISON

#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...

Link to comment
Share on other sites

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

Edited by athiwatc
Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...