Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 400
  • Last Modified:

Start A PHP-GTK Program From A BAT File Under Windows XP Without Starting A Console Window

Hi Experts

I would like to run a program written in php-gtk without having a MS-DOS command window open. This should be a quick max points for someone.
0
phpamble
Asked:
phpamble
  • 3
  • 2
1 Solution
 
OliWarnerCommented:
I've done a couple of things like this before, mainly when making java-launchers...

You want to be using the "start" command... that can spawn the thread for PHP without having to leave the command prompt window open...
0
 
OliWarnerCommented:
http://www.computerhope.com/starthlp.htm#01

Sorry meant to attach that to the last post.
0
 
phpambleAuthor Commented:
Thanks for the quick reply. This is how I am using the start command in an autorun.inf file to start the menu program.

open=cmd /c start /min .\php4\php.exe .\menu\menu.php /min

How can I change this to use the /B switch to prevent a command window from opening.
0
 
OliWarnerCommented:
I dont think you need the cmd part in there... try this:

open=start /min /b .\php4\php.exe .\menu\menu.php /min
0
 
phpambleAuthor Commented:
When  I change the syntax as you have it above and I run the autorun.inf, a dialog window displays stating "Choose the program you want to use to open the file".
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now