Solved

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

Posted on 2006-06-19
5
380 Views
Last Modified: 2008-03-10
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
Comment
Question by:phpamble
  • 3
  • 2
5 Comments
 
LVL 16

Expert Comment

by:OliWarner
ID: 16932782
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
 
LVL 16

Expert Comment

by:OliWarner
ID: 16932785
http://www.computerhope.com/starthlp.htm#01

Sorry meant to attach that to the last post.
0
 
LVL 1

Author Comment

by:phpamble
ID: 16940356
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
 
LVL 16

Accepted Solution

by:
OliWarner earned 500 total points
ID: 16941667
I dont think you need the cmd part in there... try this:

open=start /min /b .\php4\php.exe .\menu\menu.php /min
0
 
LVL 1

Author Comment

by:phpamble
ID: 16941773
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

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to count occurrences of each item in an array.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question