Solved

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

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

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?
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
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…
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.

617 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