Jump to content
Sign in to follow this  
jasonlg3d

AU3_Run

Recommended Posts

jasonlg3d

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
jasonlg3d

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
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
jasonlg3d

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
Richard Robertson

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  

×