coles Posted February 24, 2016 Share Posted February 24, 2016 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 Link to comment Share on other sites More sharing options...
InunoTaishou Posted February 24, 2016 Share Posted February 24, 2016 FileRead to read your file (store it in a variable) StringInStr to search for the string in your variable coles 1 Link to comment Share on other sites More sharing options...
coles Posted February 24, 2016 Author Share Posted February 24, 2016 @InunoTaishou thanks for that, will try to use Fileread and stringinstr.. i am pretty sure i will come back for more help 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