Jump to content

cmdow @ /HID?


Recommended Posts

http://unattended.msfn.org/intermediate/me...s/runonceex.htm

What is cmdow @ /HID? This is a tool designed to hide your command line window from the end user.

I have been using it for some time now, and what troubles me, is, even if I cannot see the commands executed in the batch file, I can still see the black dos window popping up. Is this supposed to be happening? This is the correct syntax right?

cmdow @ /HID
@echo off

dos commands here

EXIT

Is there a way to totally hide the dos windows from popping up?

Link to comment
Share on other sites


Just turn off the echo first

@echo off
cmdow @ /HID

To be quite honest, unless you use the two commands in this order, it is pointless using the @echo off command, since echoes to a hidden window will not show anyhow!

Edited by Yzöwl
Link to comment
Share on other sites

test

found

like this works fine

@echo off
cmdow @/hid
set tagfile=\WIN51
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagfile%" set CDDRIVE=%%i:
SET Tools=%CDDRIVE%\MSFN
FOR %%f IN ("%Tools%\TOOLS.exe") DO "%%f" /Silent

Link to comment
Share on other sites

@druiddk

RunHidden.vbs does not work in cmdlines.txt. It only works when unattendedly installin the applications.

@secowu

What is Tools.exe? Can I use it in cmdlines.txt too?

@VAD

RunHiddenConsole.exe does not work in cmdlines.txt either.

Thank you all for your replies.

Link to comment
Share on other sites

Here is a VBS script that will run your batch completly hidden.

Save As WHATEVER_YOU_WANT.Vbs

Const Hidden = 0, Normal = 1, Min = 2, Max =3

Dim Act, Fso, Ts, CmdFile

Set Act = CreateObject("Wscript.Shell")

Set Fso = CreateObject("Scripting.FileSystemObject")

CmdFile = Act.ExpandEnvironmentStrings("%Systemdrive%\SetCD.Cmd")

Set Ts = Fso.CreateTextFile(CmdFile)

Ts.WriteLine "@Echo Off" & vbCrLf & "set tagfile=\WIN51" & vbCrLf &_

"For %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist ""%%i:%tagfile%"" set CDDRIVE=%%i:" &_

vbCrLf & "SET Tools=%CDDRIVE%\MSFN" & vbCrLf & "FOR %%f IN (""%Tools%\TOOLS.exe"") DO ""%%f"" /Silent"

Ts.Close

Act.Run(CmdFile),Hidden,True '''' RUNS THE FILE

Act.Popup "Completed The Install Script", 5,"Finished", 0 + 32 '''' LETS YOU KNOW THE SCRIPT FINISHED

Fso.DeleteFile(CmdFile) '''' DELETES THE FILE

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...