Jump to content
coles

Something similar to FINDSTR

Recommended Posts

coles

Hi guys,

I am creating a file result with specific key words from another file

FINDSTR "\<SAH.*" c:\temp\a.txt >> result.txt & FINDSTR "\<10.17.*" c:\temp\a.txt >> result.txt

How can i write this in Auto it??

so i can include the above query to 

Example1()

Func Example1()

    RunWait(@ComSpec & " /c " & "netsh.exe mbn show interface dump >> c:\temp\a.txt");
    RunWait(@ComSpec & " /c " & "ipconfig /all >> c:\temp\a.txt");
        EndFunc

 

Noob here please be gentle.

Any guidance will be appreciated

 

Cheers

 

Share this post


Link to post
Share on other sites
InunoTaishou

FileRead to read your file (store it in a variable)

StringInStr to search for the string in your variable

  • Like 1

Share this post


Link to post
Share on other sites
coles

@InunoTaishou thanks for that, will try to use Fileread and stringinstr..

i am pretty sure i will come back for more help :P

Share this post


Link to post
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

×