hidden MS-DOS window

Posted by Arsen on Sat 05 Oct 2002 04:25 AM — 10 posts, 32,072 views.

#0
Is there any way to hide an MS-DOS window, so that it doesnt show anywhere on the screen, but still have it running?
Amended on Sat 05 Oct 2002 04:28 AM by Arsen
Australia Forum Administrator #1
Well, you can minimize it. :)

If that isn't good enough, under many versions of Windows (eg. NT, XP, 2000) you can make it a "service" which runs in the background where you don't see it. See the services.txt help file that came with my download.
USA #2
Ok I am feeling stupid. I am running under XP Pro. When I do whats said in services.txt, all that happens is the mud gets booted. No services get installed or anything. Is there a different method?
Australia Forum Administrator #3
It worked for me. I tried it under XP Home, which should be much the same. This is what I saw ...


C:\smaug>smaug /?
SMAUG 1.4a
Usage is :-
 SMAUG           - runs as a service, or stand-alone
 SMAUG /run      - runs stand-alone
 SMAUG /start    - starts this service
 SMAUG /stop     - stops this service
 SMAUG /install  - installs this service
 SMAUG /remove   - removes (un-installs) this service
 SMAUG /status   - displays the status of this service
 SMAUG /help     - displays this information

C:\smaug>smaug /install
SMAUG 1.4a
Service successfully installed

C:\smaug>smaug /start
SMAUG 1.4a
Start request sent to service

C:\smaug>smaug /status
SMAUG 1.4a
The service is running.

C:\smaug>exit


After doing that the window closed and I was able to connect to the character from MUSHclient. In other words, it was running as a service.
Amended on Tue 12 Aug 2003 06:54 AM by Nick Gammon
#4
When u do what nick said to do , you will be able to connect to the mud from any client , G-mud ,Zmud etc.....

USA #5
C:\SMAUG>sembia /?
LOADING SEMBIA V0.22b........
Tue Aug 12 19:53:23 2003 :: Booting Database
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Tue Aug 12 19:53:23 2003 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------


I use sembia cause my .bat is renamed. when I try any command tied to it, it just boots the mud.
Australia Forum Administrator #6
Quote:

When u do what nick said to do , you will be able to connect to the mud from any client , G-mud ,Zmud etc.....


MUSHclient, even. ;)
Amended on Thu 14 Aug 2003 08:13 AM by Nick Gammon
Australia Forum Administrator #7
Quote:

when I try any command tied to it, it just boots the mud.


Try using gdb to work out why it is crashing.
USA #8
I apologize if I made myself unclear. When I type anything with sembia, ex:

sembia /?

sembia /install

sembia /start

(I use sembia because my smaug.bat is renamed to sembia.bat) the mud boots up, even if its already booted in another window or not.
Australia Forum Administrator #9
Those instructions were for the smaug.exe that is available for download here. If you compile under Cygwin, and then execute a batch file, you are probably using the "Unix" version of SMAUG, not the one with the WIN32 enhancements such as services.