Jump to content

Recommended Posts

Posted

        Local $iPID = Run(@ComSpec & "cmd.exe -notepad", @SystemDir, @SW_HIDE)



any ideas?

Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 
  • Developers
Posted (edited)

So your notepad executable is called -notepad in stead of notepad.exe..   and you like to have 2 cmd.exe's started also with the required  cmd.exe parameter?

Oh...and even if it would work you would like you hide it?

I am sure you can do much better than this with a little research. 

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

Posted (edited)
49 minutes ago, Jos said:

So your notepad executable is called -notepad in stead of notepad.exe..   and you like to have 2 cmd.exe's started also with the required  cmd.exe parameter?

Oh...and even if it would work you would like you hide it?

I am sure you can do much better than this with a little research. 

No, I put notepad in place of an executable that I have for a program that's installed so that everyone can use it.
So I tried to update my code based on yoru suggestion.
 

Local $iPID = Run(@ComSpec & "notepad", @SystemDir, @SW_HIDE)

That doesn't work either.

I'm trying to run CMD in a hidden window and launch an EXE, which is notepad in this case and will be my installed program once I put that in.

Edited by Draygoes
Added details.
Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 
  • Developers
Posted (edited)

... there are ample examples in the helpfile and honestly the Run() helpfile example runs notepad so what is the issue with that way?

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...