bobheart Posted May 21, 2004 Share Posted May 21, 2004 I know how to run say notepad but how do you run it and open a txt file too . it is posted here someplace and search didn't find .. Going to copy it this time like should of the time I saw it . lol Link to comment Share on other sites More sharing options...
scriptkitty Posted May 21, 2004 Share Posted May 21, 2004 (edited) Do you mean: run('Notepad.exe "c:\temp.txt" ') Edited May 21, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
bobheart Posted May 21, 2004 Author Share Posted May 21, 2004 (edited) Yes thank you . I made a copy and put it with the rest of the stuff I copy to use later when I forget . lol Thanks again .. What would you use if it was in same folder as the exe ? So if the au3 was run from E:\folder what would you use for the c:\temp.txt" ') Edited May 21, 2004 by bobheart Link to comment Share on other sites More sharing options...
bobheart Posted May 21, 2004 Author Share Posted May 21, 2004 How does this work in the it workingdir [optional] The working directory. Link to comment Share on other sites More sharing options...
emmanuel Posted May 21, 2004 Share Posted May 21, 2004 if it's in the same directory as the script, use run("notepad.exe " & @scriptdir & "\temp.txt") or, if you wanted to do it with working dir, I suppose you could do it like this: run("notepad.exe temp.txt", "C:\wherever") though I'm less sure that will work right. "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
bobheart Posted May 21, 2004 Author Share Posted May 21, 2004 Thanks man that was what I needed .. 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