jasonlg3d Posted February 18, 2009 Share Posted February 18, 2009 Ok, I'm simply trying to launch notepad from my c++ executable. AU3_Run( "notepad.exe", "", 1 ); that doesnt seem to do anything. I've tried specifying the full path to notepad and that doesn't work either. What I'm really trying to do is open a .txt file at the end of my program execution to display the results. Maybe there is an easier way to do this? Link to comment Share on other sites More sharing options...
Developers Jos Posted February 18, 2009 Developers Share Posted February 18, 2009 (edited) Doesn't sound like a standard AutoIt3 Function:AU3_Run() ? Jos Edited February 18, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
jasonlg3d Posted February 18, 2009 Author Share Posted February 18, 2009 AU3_API long WINAPI AU3_Run(const char *szRun, /*[in,defaultvalue("")]*/const char *szDir, /*[in,defaultvalue(1)]*/long nShowFlags); Link to comment Share on other sites More sharing options...
Developers Jos Posted February 18, 2009 Developers Share Posted February 18, 2009 I am sorry, didn't notice the forum it was in and don't mess much with these funcs. Have you tried supplying the Workingdir? AU3_Run("Notepad.exe", "C:\WINDOWS"); SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
jasonlg3d Posted February 18, 2009 Author Share Posted February 18, 2009 Well I thought of another way of doing what i want using C command = "notepad.exe \"" + configSettings.GetExecPath() + "buyOut.txt\""; system( command.c_str() ); That works great. Thanks for your time though. Link to comment Share on other sites More sharing options...
Richard Robertson Posted February 18, 2009 Share Posted February 18, 2009 Have you tried using the path to notepad? C:\Windows\notepad.exe? 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