Jump to content

Recommended Posts

Posted

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?


Posted (edited)

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
Posted

@Yzöwl:

That will not be helpful in this manner.

Of course it will make the black box empty, but the black box will still show even though there is no output to it.

Posted

@ druiddk

It will be helpful since I answered the question in the thread title, cmdow @ /HID?, Is it supposed to show?, as opposed to the first post which was answered already by yourself.

Posted

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

Posted

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

Posted

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

Posted

@gunsmokingman:

Of course the script you posted works with cmdlines.txt (you obviously read the previous posts before posting your script, right?)

:)

Posted
@gunsmokingman:

Of course the script you posted works with cmdlines.txt (you obviously read the previous posts before posting your script, right?)

:)

No I just wrote that script up.

Posted

i use a simple autoit script i made called "hideme" usage hideme <program/batch>

if any1 wants it lemme know ill attach it

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