Windows Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsWindows Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 30th, 2003, 10:44 PM
summercom's Avatar
summercom summercom is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Michigan, USA
Posts: 196 summercom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 5 m 3 sec
Reputation Power: 6
command prompt window silence

im not sure if this is the correct place to put this, but I am running Apache on Windows XP Pro and whenever I run this php script:
PHP Code:
<?
$uptime 
exec ("c:\uptime.exe 2>&1");
echo 
$uptime;
?>

a command prompt window opens and closes real fast, but the script works fine, I was just wondering if there was a way to hide or stop the command prompt window from popping up like it does

Reply With Quote
  #2  
Old March 31st, 2003, 02:17 AM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
To the best of my knowledge, if you want to use an exec command and it is a dos program, the window must display, even as brief as it may be.

Reply With Quote
  #3  
Old March 31st, 2003, 03:09 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 11 m 27 sec
Reputation Power: 27
If you can make a shortcut to the file you can run the shortcut using the "start" program. In the shortcut properties you can specify for the program to start minimised. It will still appear in the task bar.

The other way is to make a vb program that shells the program and hides the window, not very efficient though. You should be able to do this via system calls just gotta find out the reference on what to use.
__________________
- Andreas Koepke

I have photos for sale at RedBubble


Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsWindows Help > command prompt window silence


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT