Jump to content
Sign in to follow this  
bobheart

I Know It Is Posted Here Someplace Cant Find It

Recommended Posts

bobheart

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

Share this post


Link to post
Share on other sites
scriptkitty

Do you mean:

run('Notepad.exe "c:\temp.txt" ')
Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites
bobheart

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 by bobheart

Share this post


Link to post
Share on other sites
bobheart

How does this work in the it

workingdir [optional] The working directory.

Share this post


Link to post
Share on other sites
emmanuel

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)

Share this post


Link to post
Share on other sites
bobheart

Thanks man that was what I needed ..

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
Sign in to follow this  

×