John117 Posted July 10, 2007 Share Posted July 10, 2007 Run("Buttons.txt", "D:\", @SW_MAXIMIZE Run("D:\Buttons.txt") Run( @ScriptDir & "\Buttons.txt") anything wrong here? Link to comment Share on other sites More sharing options...
evilertoaster Posted July 10, 2007 Share 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 Link to comment Share on other sites More sharing options...
weaponx Posted July 11, 2007 Share 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") Link to comment Share on other sites More sharing options...
John117 Posted July 11, 2007 Author Share 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! Link to comment Share on other sites More sharing options...
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