Solved

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

Posted on 2006-06-19
5
369 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now