Sign in to follow this  
Followers 0
jasonlg3d

AU3_Run

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



AU3_API long WINAPI AU3_Run(const char *szRun, /*[in,defaultvalue("")]*/const char *szDir, /*[in,defaultvalue(1)]*/long nShowFlags);

Share this post


Link to post
Share on other sites

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");

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Have you tried using the path to notepad? C:\Windows\notepad.exe?

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  
Followers 0