John117 Posted July 10, 2007 Posted July 10, 2007 Run("Buttons.txt", "D:\", @SW_MAXIMIZE Run("D:\Buttons.txt") Run( @ScriptDir & "\Buttons.txt") anything wrong here?
evilertoaster Posted July 10, 2007 Posted July 10, 2007 (edited) Run("Buttons.txt", "D:\", @SW_MAXIMIZE) Run("D:\Buttons.txt") Run( @ScriptDir & "\Buttons.txt") extra ')' Edited July 10, 2007 by evilertoaster
weaponx Posted July 11, 2007 Posted July 11, 2007 Run is for programs. A text file would need to be run as a notepad parameter. Use this: ShellExecute("Buttons.txt", "", @ScriptDir, "edit")
John117 Posted July 11, 2007 Author Posted July 11, 2007 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!
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