Solved

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

Posted on 2006-06-19
5
383 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
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?
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

759 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