Sign in to follow this  
Followers 0
John117

What is wrong with this single line?

4 posts in this topic

Run("Buttons.txt", "D:\", @SW_MAXIMIZE

Run("D:\Buttons.txt")

Run( @ScriptDir & "\Buttons.txt")

anything wrong here?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Run("Buttons.txt", "D:\", @SW_MAXIMIZE)
Run("D:\Buttons.txt") 
Run( @ScriptDir & "\Buttons.txt")

extra ')'

Edited by evilertoaster

Share this post


Link to post
Share on other sites

Run is for programs. A text file would need to be run as a notepad parameter.

Use this:

ShellExecute("Buttons.txt", "", @ScriptDir, "edit")

Share this post


Link to post
Share on other sites

That works! Point taken, I assumed that because the run command (winkey+R) would open the path.txt that the run() would as well! Thanks!

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  
Followers 0