Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

[Batch-Help] Hide program from taskbar

- - - - -

  • Please log in to reply
22 replies to this topic

#1
CaTaLinU

CaTaLinU

    Newbie

  • Member
  • 12 posts
  • Joined 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag
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?


How to remove advertisement from MSFN

#2
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,814 posts
  • Joined 13-January 06
Hstart should help you.

#3
gunsmokingman

gunsmokingman

    MSFN Master

  • Super Moderator
  • 2,433 posts
  • Joined 02-August 03
  • OS:none specified
  • Country: Country Flag
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



GunSmokingMan



#4
CaTaLinU

CaTaLinU

    Newbie

  • Member
  • 12 posts
  • Joined 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag
and what script i need to add in .bat to run that vbs?

#5
gunsmokingman

gunsmokingman

    MSFN Master

  • Super Moderator
  • 2,433 posts
  • Joined 02-August 03
  • OS:none specified
  • Country: Country Flag
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



GunSmokingMan



#6
CaTaLinU

CaTaLinU

    Newbie

  • Member
  • 12 posts
  • Joined 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag
i need the script code for batch ...

#7
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,578 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

CScript.exe / WScript.exe

#8
CaTaLinU

CaTaLinU

    Newbie

  • Member
  • 12 posts
  • Joined 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag
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
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,578 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

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
CaTaLinU

CaTaLinU

    Newbie

  • Member
  • 12 posts
  • Joined 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag
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
gunsmokingman

gunsmokingman

    MSFN Master

  • Super Moderator
  • 2,433 posts
  • Joined 02-August 03
  • OS:none specified
  • Country: Country Flag
If you provide all the Bat contents perhaps it could be converted to VBS scripting.


GunSmokingMan



#12
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,578 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

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.

#13
CaTaLinU

CaTaLinU

    Newbie

  • Member
  • 12 posts
  • Joined 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag
if i delete -console
the hlds.exe would not be work perfectly
in 2 seconds it gives me an error from hlds.exe

#14
bphlpt

bphlpt

    MSFN Addict

  • Member
  • PipPipPipPipPipPipPip
  • 1,827 posts
  • Joined 12-May 07
  • OS:none specified
  • Country: Country Flag
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

Posted Image


#15
CaTaLinU

CaTaLinU

    Newbie

  • Member
  • 12 posts
  • Joined 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag
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, 10 May 2012 - 08:25 AM.


#16
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,578 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

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
CaTaLinU

CaTaLinU

    Newbie

  • Member
  • 12 posts
  • Joined 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag
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
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,578 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

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
CaTaLinU

CaTaLinU

    Newbie

  • Member
  • 12 posts
  • Joined 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag
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
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,578 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

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.

#21
CaTaLinU

CaTaLinU

    Newbie

  • Member
  • 12 posts
  • Joined 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag
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 ?

#22
bphlpt

bphlpt

    MSFN Addict

  • Member
  • PipPipPipPipPipPipPip
  • 1,827 posts
  • Joined 12-May 07
  • OS:none specified
  • Country: Country Flag

I made it :D


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

Cheers and Regards

Posted Image


#23
CaTaLinU

CaTaLinU

    Newbie

  • Member
  • 12 posts
  • Joined 07-May 12
  • OS:Windows 7 x64
  • Country: Country Flag
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 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users