markj Posted March 20, 2006 Share Posted March 20, 2006 Hello all you intelligent people I know this is probably the stupidest thing i've posted but i need to know how to simply open a file in notepad. i want to specify a location and open a specific file in notepad i.e. in dos i would just: c:\progra~1\SmartSwitch>notepad smartswitch.dfn how do i simply automate this. ta very much!!! Link to comment Share on other sites More sharing options...
seandisanti Posted March 20, 2006 Share Posted March 20, 2006 (edited) Hello all you intelligent people I know this is probably the stupidest thing i've posted but i need to know how to simply open a file in notepad. i want to specify a location and open a specific file in notepad i.e. in dos i would just: c:\progra~1\SmartSwitch>notepad smartswitch.dfn how do i simply automate this. ta very much!!!Run("notepad.exe file.txt") ;or Run("notepad.exe " & $file) ***edit*** forgot my Edited March 20, 2006 by cameronsdad Link to comment Share on other sites More sharing options...
Valuater Posted March 20, 2006 Share Posted March 20, 2006 (edited) Run("Notepad.exe C:\test.txt")8)BTWthere are two great demos for controlling programs ( uses notepad )... herehttp://www.autoitscript.com/forum/index.php?showtopic=21048# Edited March 20, 2006 by Valuater 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