| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 43021 | 2004-03-01 02:24:00 | Batch files create unsightly desktop clutter...pffft | dchip (1426) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 219215 | 2004-03-01 02:24:00 | My clan and I have set up a remote server to host a couple of the games we play( 3 Mohaa servers and also 1 COD server). Here is an example of one of the batch files: @echo off cd\ cd\ c:\Program Files\Games\MOHAA\ mohaa_server.exe +dedicated 1 +dedicated 2 +set net_port 12206 +exec thepit.cgf We created shortcuts to the batch files and set them to run "minimized", then placed the shortcuts in the startup folder to activate them at boot time. That works fine except for one thing... The server windows remain open and on screen for the whole day and their supporting "Dos" windows(the batch files) remain open too but are minimized. Is their a way to have the servers running whilst having their supporting windows and the "Dos" windows closed?????(in other words, no windows remain open but the servers are still running). Silly I know because the server dosen't even have a screen...never the less I was asked if I could do it that way... only god knows why, and he won't speek to me after the last stupid question I put too him...lol |
dchip (1426) | ||
| 219216 | 2004-03-01 03:08:00 | You put the cls command on the last line: @echo off cd\ cd\ c:\Program Files\Games\MOHAA\ mohaa_server.exe +dedicated 1 +dedicated 2 +set net_port 12206 +exec thepit.cgf cls That would close the dos window. (XP/2000) Then you could maybe try having the batch file disable the explorer.exe service to give maximum computer performance. |
PoWa (203) | ||
| 219217 | 2004-03-01 03:14:00 | 1. cls clears the screen. It doesn't close any running sessions. 2. The server is a headless one, so clearing the screen does nothing. ;-) 3. If the programme is run from DOS, it has to have a DOS session to run from. Ever tried sawing off the branch that you're sitting on? 4. If it works, don't fix it. 5. :D |
Graham L (2) | ||
| 219218 | 2004-03-01 03:46:00 | roflmao@"Ever tried sawing off the branch that you're sitting on?"....I like that one and yes you are absolutely right when you say:"If it works, don't fix it." Now my only problem is how to convince the other members (well, one in particular) that we don't really have a problem....lol Anyways, hope at least ya got a bit of a chukkle out of it...it was intended to be just a "by the by..." sort of thread...not of much concern at all...just had me curious, ya know? Thanks all for your time and effort..:) |
dchip (1426) | ||
| 219219 | 2004-03-01 04:04:00 | Are you able to set that command as a shortcut, instead of a batch file, and then put that shortcut somewhere out of the way, and just set it in Scheduled Tasks to run on every bootup? | somebody (208) | ||
| 219220 | 2004-03-01 04:06:00 | eg. create a shortcut to: "C:\Program Files\Games\MOHAA\mohaa_server.exe +dedicated 1 +dedicated 2 +set net_port 12206 +exec thepit.cgf" |
somebody (208) | ||
| 219221 | 2004-03-01 04:13:00 | > 1. cls clears the screen. It doesn't close any running sessions. cls closes the command window! No clearing of screen. I'll be money on it. Make a batch file in XP/2000 and it will happen! > 2. The server is a headless one, so clearing the screen does nothing. Yes, but he asked :p |
PoWa (203) | ||
| 219222 | 2004-03-01 05:00:00 | Yes I tried the shortcut and windows task manager....but it didn't work...it started the server but would'nt set the port or start the .cfg file. btw:I tried the cls command: notepad.exe cls ....the window stays open until I close notepad. btw can we post screenies in this formum? |
dchip (1426) | ||
| 219223 | 2004-03-01 05:48:00 | > btw can we post screenies in this formum? Sort of ;-) Post your screenie here (sal.neoburn.net) then post the link in your thread. |
Fire-and-Ice (3910) | ||
| 219224 | 2004-03-01 06:06:00 | Coool...thanks for that :) Here's the screenie then: sal.neoburn.net btw....in regards to the typo that appeared at the bottom of my last post (formum)....hehehe...as it happens I was talking to me mum on the phone while posting....how bizare...lol:p |
dchip (1426) | ||
| 1 2 | |||||