MSFN Forum: [Batch-Help] Hide program from taskbar - MSFN Forum

Jump to content


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

[Batch-Help] Hide program from taskbar Rate Topic: -----

#1 User is offline   CaTaLinU 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 May 2012 - 10:21 AM

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?


#2 User is offline   allen2 

  • Not really Newbie
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,737
  • Joined: 13-January 06

Posted 07 May 2012 - 12:51 PM

Hstart should help you.

#3 User is offline   gunsmokingman 

  • MSFN Master
  • Group: Super Moderator
  • Posts: 2,352
  • Joined: 02-August 03
  • OS:none specified
  • Country: Country Flag

Posted 07 May 2012 - 04:48 PM

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


#4 User is offline   CaTaLinU 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 May 2012 - 09:45 PM

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

#5 User is offline   gunsmokingman 

  • MSFN Master
  • Group: Super Moderator
  • Posts: 2,352
  • Joined: 02-August 03
  • OS:none specified
  • Country: Country Flag

Posted 07 May 2012 - 11:04 PM

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


#6 User is offline   CaTaLinU 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 May 2012 - 05:36 AM

i need the script code for batch ...

#7 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,364
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 08 May 2012 - 07:16 AM

CScript.exe / WScript.exe

#8 User is offline   CaTaLinU 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 May 2012 - 07:26 AM

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 ........

#9 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,364
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 08 May 2012 - 08:35 AM

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.)

#10 User is offline   CaTaLinU 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 May 2012 - 08:39 AM

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.....

#11 User is offline   gunsmokingman 

  • MSFN Master
  • Group: Super Moderator
  • Posts: 2,352
  • Joined: 02-August 03
  • OS:none specified
  • Country: Country Flag

Posted 08 May 2012 - 11:09 AM

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

#12 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,364
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 08 May 2012 - 03:25 PM

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

Quote

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.

#13 User is offline   CaTaLinU 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 May 2012 - 06:57 AM

if i delete -console
the hlds.exe would not be work perfectly
in 2 seconds it gives me an error from hlds.exe

#14 User is offline   bphlpt 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,082
  • Joined: 12-May 07

Posted 10 May 2012 - 08:15 AM

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

#15 User is offline   CaTaLinU 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 May 2012 - 08:24 AM

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

This post has been edited by CaTaLinU: 10 May 2012 - 08:25 AM


#16 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,364
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 10 May 2012 - 09:00 AM

In the file you PM'd what was the problem with the commented out CMDOW line?
cmdow /run /hid hlds.exe arg1 "arg 2"…


#17 User is offline   CaTaLinU 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 May 2012 - 10:35 AM

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 ....

#18 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,364
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 10 May 2012 - 11:44 AM

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?

#19 User is offline   CaTaLinU 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 10 May 2012 - 12:28 PM

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 ?

#20 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,364
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 10 May 2012 - 02:57 PM

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.

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy