Jump to content
Sign in to follow this  
John117

What is wrong with this single line?

Recommended Posts

John117

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
weaponx

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
John117

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.