You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Edwin Humphries <ed...@ironstone.com.au> on 2003/12/05 20:48:13 UTC

[users@httpd] Apache (Win32) consoole window

Is it possible to run Apache Win32 in a hidden console Window, or without a console 
window at all - just as a process?

It's running on Windows 2000/XP (not server).

Edwin Humphries,
Ironstone Technology Pty Ltd
edwin@ironstone.com.au.INVALID
www.ironstone.com.au
Phone: 02 4233 2285
Fax: 02 4233 2299
Mobile: 0419 233 051

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache (Win32) consoole window

Posted by Jeff White <jl...@earthlink.net>.
From: "Edwin Humphries"

> Is it possible to run Apache Win32 in a hidden
> console Window, or without a console
> window at all - just as a process?
>
> It's running on Windows 2000/XP (not server).
>

There are many ways to do this
depending on how and why.

Windows Scripting with VBScript scripts.

Adjust the scripts to your needs, then save
the VBScript script file to any folder. Then
in a command prompt window set to the
VBScript script's folder, use the Windows
Script Host (WSH) engine cscript.exe
by typing:

cscript.exe VBScriptFileName.vbs

Remember one can also use the script
language of your desire with the Windows
Script Host (WSH) engines.

<quote>

Starts Notepad.exe on the local computer,
but in a hidden window.

</quote>

Creating a Process in a Hidden Window
http://www.microsoft.com/technet/scriptcenter/process/scrpcs03.asp

For more information on
Win32_ProcessStartup
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_processstartup.asp

C:\Documents and Settings\Name>cscript.exe hiddenprocess.vbs

Nothing showing saying notepad,
so to see if notepad started just
press CTRL & ALT & DEL to get
the Windows Task Manager or run
one of the many programs that list
programs: tasklist.exe, tlist.exe,
pslist.exe or qprocess.exe.

C:\Documents and Settings\Name>qprocess  notepad.exe

Returns

 USERNAME   SESSIONNAME  ID     PID  IMAGE
>name              console                 0    1072  notepad.exe

And yep there it is too in the Windows Task Manager.

Either kill this notepad.exe process in
the Windows Task Manager or use one
of the many kill programs: kill.exe, pskill.exe,
taskkill.exe, or run the following VBScript
script file:

<quote>

Terminates any running instances of Notepad.exe.

<quote>

Terminating a Process
http://www.microsoft.com/technet/scriptcenter/process/scrpcs08.asp

C:\Documents and Settings\Name>cscript KillProcess.vbs

C:\Documents and Settings\Name>qprocess notepad.exe
No Process exists for notepad.exe

Microsoft Script Center
http://www.microsoft.com/technet/scriptcenter/default.asp

An ONLINE version of the 1328 page Scripting Guide:
Microsoft Windows 2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp


Jeff



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache (Win32) consoole window

Posted by Lodrö Sangpo Joergen Larsen <ni...@tdcspace.dk>.
you could try my little free program which trays the console window
see http://www.nimmersoft.dk/downfiles/nimapacheinstall.exe

OmManiPemeHung
Many Greetings Viele Gruesse Mange Hilsener
Lodrö Sangpo Joergen Larsen
www.nimmersoft.com www.nimmersoft.dk
Karmapa Chenno
OmManiPemeHung

----- Original Message ----- 
From: "Edwin Humphries" <ed...@ironstone.com.au>
To: <us...@httpd.apache.org>
Sent: Friday, December 05, 2003 8:48 PM
Subject: [users@httpd] Apache (Win32) consoole window


> Is it possible to run Apache Win32 in a hidden console Window, or without a console 
> window at all - just as a process?
> 
> It's running on Windows 2000/XP (not server).
> 
> Edwin Humphries,
> Ironstone Technology Pty Ltd
> edwin@ironstone.com.au.INVALID
> www.ironstone.com.au
> Phone: 02 4233 2285
> Fax: 02 4233 2299
> Mobile: 0419 233 051
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache (Win32) consoole window

Posted by Marty Landman <ML...@face2interface.com>.
At 02:48 PM 12/5/2003, Edwin Humphries wrote:
>Is it possible to run Apache Win32 in a hidden console Window, or without 
>a console
>window at all - just as a process?

That's the way Apache2 runs on my XP home ed. (sp1) box.

administrative tools > component services > apache2 > properties

path to executable -> "E:\Apache Group\Apache2\bin\Apache.exe" -k runservice
startup type -> automatic

It's been a little while since I d/l'd and installed from the apache 
website on my xp box but I'm sure it was real easy, or I never would've 
gotten this far. :)

hth,

Marty Landman   Face 2 Interface Inc 845-679-9387
Sign On Required: Web membership software for your site
Make a Website: http://face2interface.com/Home/Demo.shtml


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Apache (Win32) consoole window

Posted by Thomas George <tg...@ibaset.com>.
You can run it as a service; Its something like: apache -k install "SERVICE
NAME" (in the apache.exe directory); look in the documentation for running
it as a service and something called apachemonitor.exe (which is an optional
tray utility).

-----Original Message-----
From: Edwin Humphries [mailto:edwin@ironstone.com.au] 
Sent: Friday, December 05, 2003 11:48 AM
To: users@httpd.apache.org
Subject: [users@httpd] Apache (Win32) consoole window

Is it possible to run Apache Win32 in a hidden console Window, or without a
console 
window at all - just as a process?

It's running on Windows 2000/XP (not server).

Edwin Humphries,
Ironstone Technology Pty Ltd
edwin@ironstone.com.au.INVALID
www.ironstone.com.au
Phone: 02 4233 2285
Fax: 02 4233 2299
Mobile: 0419 233 051

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org