471,337 Members | 1,179 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

[Q] PHP-CLI on Windows / PHP-GTK favorites.

Howdy,

I PROMISE that I've Googled this... =)

I've written a PHP script to run from the command line. I can also run
it from a shortcut on my desktop, etc. and it works great.

However, I can't remember how to suppress the "DOS box/CLI
window/Command Interpreter/whatever *you* call it" that appears. I
recall that there's a switch that one can put in the shortcut/or in a
batch file to suppress the big black window...

Also, I've recently become interested in PHP-GTK. Does anyone have some
favorite sites they'd recommend? I'm looking for real recommendations,
not "Google PHP-GTK" ;)

Thanks,

- Dan
http://blog.dantripp.com/
Jul 17 '05 #1
3 2134
On 2004-02-02, Dan Tripp <th*******@MyEMailAddress.com> wrote:
However, I can't remember how to suppress the "DOS box/CLI
window/Command Interpreter/whatever *you* call it" that appears. I
recall that there's a switch that one can put in the shortcut/or in a
batch file to suppress the big black window...


This is how i did it on my sisters win98 box:
I have a batch file that contains the commands that need to be executed.
Then i created a shortcut to that batchfile on the destktop.
Then i right-clicked on that shortcut, editted the properties:
second tab(program) close window after completion.
--
http://home.mysth.be/~timvw
Jul 17 '05 #2
Tim Van Wassenhove wrote:
On 2004-02-02, Dan Tripp <th*******@MyEMailAddress.com> wrote:
However, I can't remember how to suppress the "DOS box/CLI
window/Command Interpreter/whatever *you* call it" that appears. I
recall that there's a switch that one can put in the shortcut/or in a
batch file to suppress the big black window...

This is how i did it on my sisters win98 box:
I have a batch file that contains the commands that need to be executed.
Then i created a shortcut to that batchfile on the destktop.
Then i right-clicked on that shortcut, editted the properties:
second tab(program) close window after completion.


Ah, looks like I forgot to state that I'm calling the script from cron
(yes, on a Windows machine).

- Dan
http://blog.dantripp.com/
Jul 17 '05 #3
If you are using the DOS command.com of the NT cmd.exe then
the switch you need to use is the /C option.

COMMAND [[drive:]path] [device] [/E:nnnnn] [/P] [/C string] [/MSG]
CMD [/X | /Y] [/A | /U] [/Q] [[/C | /K] string]

For more details see the help for either tools:

C:\>command.com /?
C:\>cmd.exe /?

Jussi Jumppanen
Author of: Zeus for Windows, Win32 (Brief, WordStar, Emacs) Text Editor
"The C/C++, Java, HTML, FTP, Python, PHP, Perl programmer's editor"
http://www.zeusedit.com
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by shank | last post: by
2 posts views Thread by Steve | last post: by
8 posts views Thread by Alex D. | last post: by
4 posts views Thread by randy.buchholz | last post: by
reply views Thread by =?Utf-8?B?U3VydHVyWg==?= | last post: by
1 post views Thread by =?Utf-8?B?TWFya3VzIFNjaC4=?= | last post: by
5 posts views Thread by andrewq2 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.