Jump to content

Recommended Posts

Posted

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?

  • Developers
Posted

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.
  :)

Posted

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.

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
×
×
  • Create New...