Jump to content

I Know It Is Posted Here Someplace Cant Find It


Recommended Posts

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

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

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

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