Jump to content

Run application without see its window, is it possible?


sosimple
 Share

Recommended Posts

Hi. I run an .exe application. This shows a window with buttons in screen. After i see the window i can do what i want (move it out of screen to make it invisible, press its button, etc)

My only problem is that i dont want to see this window at all.. Is there any way?

Thanks,

Link to comment
Share on other sites

Yes, I use shellexecute with flag.. But dont work.

 ShellExecute("C:\Program Files\aaa.exe", "","C:\Program Files","", @SW_HIDE )

In the example, the aaa.exe is a windows application which shows a window box in screen.

It is not a dos application .. Will the above comand supposed to work in this case?

Edited by sosimple
Link to comment
Share on other sites

does the exe support command line switches?
example: aaa.exe /q

the /q is quiet and may launch the exe in invisible mode. You can test by using the /? switch to see if it supports any command line switches.

I don't know this.. It has in system tray exit, reboot options.. Is it possible to take commands like  exit as command line switches?

Should i use run or shellexecute for this? What is the differences?

Thanks,

Link to comment
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
 Share

  • Recently Browsing   0 members

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