Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2006-06-19
5
Medium Priority
?
398 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 1500 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This is a fine trick which I've found useful many times, when you just don't want to accidentally run a batch script or the commands needs administrator rights.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

877 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