• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
Sign in to follow this  
Followers 0
CaTaLinU

[Batch-Help] Hide program from taskbar

23 posts in this topic

i have this in my .bat program

start /min /low hlds.exe -console -game cstrike %IPARG% +sys_ticrate 150 -heapsize 15000 -port %port_add% -noipx +exec server%sv_add%.cfg

How can i make tha the hlds.exe consoles to be hidden in the taskbar?

0

Share this post


Link to post
Share on other sites

If you wanted to run this in VBS with nothing showing in the taskbar aand no 3rd party apps.

Save As RunHiddenHids.vbs

 CreateObject("Wscript.Shell").Run("hlds.exe -console -game cstrike %IPARG% +sys_ticrate 150 -heapsize 15000 -port %port_add% -noipx +exec server%sv_add%.cfg"), 0,False

0

Share this post


Link to post
Share on other sites

and what script i need to add in .bat to run that vbs?

0

Share this post


Link to post
Share on other sites

You would run it as a VBS script, it does not need cmd promt.

Hidden Window And Wont Wait For App To Close

 CreateObject("Wscript.Shell").Run("hlds.exe -console -game cstrike %IPARG% +sys_ticrate 150 -heapsize 15000 -port %port_add% -noipx +exec server%sv_add%.cfg"), 0,False

Show Window And Wait For App To Close

 CreateObject("Wscript.Shell").Run("hlds.exe -console -game cstrike %IPARG% +sys_ticrate 150 -heapsize 15000 -port %port_add% -noipx +exec server%sv_add%.cfg"), 1,True

0

Share this post


Link to post
Share on other sites

i need the script code for batch ...

0

Share this post


Link to post
Share on other sites

file.bat


@echo off
[...]
:: some code deleted
start RunHiddenHids.vbs

RunHiddenHids.vbs

CreateObject("Wscript.Shell").Run("hlds.exe -console -game cstrike %IPARG% +sys_ticrate 150 -heapsize 15000 -port %port_add% -noipx +exec server%sv_add%.cfg"), 0,False

But the consoles are still showing on the desktop and taskbar ........

0

Share this post


Link to post
Share on other sites

Provide us with the entire .bat file and your operating system and also please tell us which console(s) are showing in the taskbar and on the desktop. (you can provide a screenshot if you are having difficulty making your point in English.)

0

Share this post


Link to post
Share on other sites

I cant make public my entire .bat

Windows 7

Read PM

Well

if i will set to open 3 redirects

on desktop wil be shown 3 consoles hlds.exe and in taskbar also 3 programs.....

0

Share this post


Link to post
Share on other sites

If you provide all the Bat contents perhaps it could be converted to VBS scripting.

0

Share this post


Link to post
Share on other sites

It could be converted to HTA, AutoIt or VBS because it is basically a series of commands based on interactive responses to choices. The majority of the file is unnecessary code used to beautify the command window.

The problem I think is unrelated to the batch file, I now think that what CaTaLinU is actually asking for is to be able to run HLDS.exe in console mode

hlds.exe -console
without that console appearing!

They may also find that running START with the /B switch would prevent an additional window from opening.

0

Share this post


Link to post
Share on other sites

if i delete -console

the hlds.exe would not be work perfectly

in 2 seconds it gives me an error from hlds.exe

0

Share this post


Link to post
Share on other sites

It might help if CaTaLinU more fully explained what it is that he is trying to do, and why. Assuming that we're talking about Half-Life Dedicated server (HLDS), what is the problem with it showing in the taskbar? (I'm not a gamer so I'm sure there are aspects of game play that I don't understand.) It would also be nice if CaTaLinU would say Thanks at least once for our efforts, even if they are not exactly what he was looking for. So far, in all the threads he has participated in he has made requests then said that our response was not good enough and asked for more. That doesn't inspire me to want to provide any more assistance. [Jaclaz must be rubbing off on me - I'm getting grumpy.]

Cheers and Regards

0

Share this post


Link to post
Share on other sites

This is my 2nd thread

and i have thanked there :D

I just want to hide the HLDS.EXE process from taskbar

this is for Redirects , if you know what are Redirects for CS 1.6 Game ...

@ Thx for those who tried to help me :D

Edited by CaTaLinU
0

Share this post


Link to post
Share on other sites

In the file you PM'd what was the problem with the commented out CMDOW line?

cmdow /run /hid hlds.exe arg1 "arg 2"…

0

Share this post


Link to post
Share on other sites

i have added cmdow.exe there

i have editet the .bat file

cmdow /run /hid hlds.exe -console -game cstrike %IPARG% +sys_ticrate 150 +fps_max 200 -heapsize 15000 -port %port_add% -noipx +exec server%sv_add%.cfg

but it stil shows the consoles ....

0

Share this post


Link to post
Share on other sites

Which console(s)?

Your end user is defining a number of redirects, if they choose 30 then you are effectively running the command above 30 times in a loop with a user defined delay of anything from 0 to 9 seconds between each separate run command. Are these the consoles which are still showing when run with cmdow?

0

Share this post


Link to post
Share on other sites

I made it :D

now i want to make a command

cmdow Console /VIS

but from al my 9 consoles , it sets to be visible only 1 vonsole

some help ?

0

Share this post


Link to post
Share on other sites

I would suggest that yuor problem lies in having all of the windows with the same title. You would probably be able to give them a new title with CMDOW's /REN switch possibly using the %port_add% variable in the name to make each one unique. As a result you'd have different names to identify each one with for making them visible again.

Before you go down that road you may be better off looking at a slightly different but similar tool, TrayIt!. It appears that you may be able to group these windows together/hide them in a different way.

0

Share this post


Link to post
Share on other sites

Next vbs code is for starting a process hidden

CreateObject("Wscript.Shell").Run("hlds.exe -console -game cstrike %IPARG% +sys_ticrate 150 -heapsize 15000 -port %port_add% -noipx +exec server%sv_add%.cfg"), 0,False

but what is the code for hide the process hlds.exe if he is already opened ?

0

Share this post


Link to post
Share on other sites
I made it :D

What did you find that worked for you? Please share your success.

Cheers and Regards

0

Share this post


Link to post
Share on other sites

I HAVE TRIED WITH CMDOW

BUT FOR SOME FRIENDS IT DIDN;T WORKED

now i want to try with vbs , but when i start the program because of hlds.exe -console , it is not hiding

i must make another line command which will hide an already opened program ..

like that i have done and with cmdow

start hlds.exe

cmdow hlds.exe /hid

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.