Nucleus Posted December 14, 2005 Share Posted December 14, 2005 http://unattended.msfn.org/intermediate/me...s/runonceex.htmWhat 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 offdos commands hereEXITIs there a way to totally hide the dos windows from popping up? Link to comment Share on other sites More sharing options...
druiddk Posted December 14, 2005 Share Posted December 14, 2005 Hi mate,I think RunHidden.vbs can solve your problem.Take a look at:http://www.jsifaq.com/SUBS/tip9300/rh9390.htmThis way you could use RunHidden.vbs batch.cmd and it should not even popup the black box. Link to comment Share on other sites More sharing options...
Yzöwl Posted December 14, 2005 Share Posted December 14, 2005 (edited) Just turn off the echo first@echo offcmdow @ /HIDTo 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 December 14, 2005 by Yzöwl Link to comment Share on other sites More sharing options...
druiddk Posted December 14, 2005 Share Posted December 14, 2005 @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. Link to comment Share on other sites More sharing options...
Yzöwl Posted December 14, 2005 Share Posted December 14, 2005 @ druiddkIt 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. Link to comment Share on other sites More sharing options...
secowu Posted December 15, 2005 Share Posted December 15, 2005 test found like this works fine@echo offcmdow @/hidset tagfile=\WIN51for %%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%\MSFNFOR %%f IN ("%Tools%\TOOLS.exe") DO "%%f" /Silent Link to comment Share on other sites More sharing options...
Vadikan Posted December 15, 2005 Share Posted December 15, 2005 @NucleusHave a look at this thread http://www.msfn.org/board/index.php?showtopic=49184 Link to comment Share on other sites More sharing options...
Nucleus Posted December 15, 2005 Author Share Posted December 15, 2005 @druiddkRunHidden.vbs does not work in cmdlines.txt. It only works when unattendedly installin the applications.@secowuWhat is Tools.exe? Can I use it in cmdlines.txt too?@VADRunHiddenConsole.exe does not work in cmdlines.txt either.Thank you all for your replies. Link to comment Share on other sites More sharing options...
gunsmokingman Posted December 15, 2005 Share Posted December 15, 2005 Here is a VBS script that will run your batch completly hidden.Save As WHATEVER_YOU_WANT.VbsConst Hidden = 0, Normal = 1, Min = 2, Max =3Dim Act, Fso, Ts, CmdFileSet 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 FILEAct.Popup "Completed The Install Script", 5,"Finished", 0 + 32 '''' LETS YOU KNOW THE SCRIPT FINISHEDFso.DeleteFile(CmdFile) '''' DELETES THE FILE Link to comment Share on other sites More sharing options...
druiddk Posted December 16, 2005 Share Posted December 16, 2005 @gunsmokingman:Of course the script you posted works with cmdlines.txt (you obviously read the previous posts before posting your script, right?) Link to comment Share on other sites More sharing options...
Vadikan Posted December 16, 2005 Share Posted December 16, 2005 Try hidcon Usage: hidcon batch.cmd Link to comment Share on other sites More sharing options...
gunsmokingman Posted December 16, 2005 Share Posted December 16, 2005 @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. Link to comment Share on other sites More sharing options...
MCT Posted December 16, 2005 Share Posted December 16, 2005 i use a simple autoit script i made called "hideme" usage hideme <program/batch>if any1 wants it lemme know ill attach it Link to comment Share on other sites More sharing options...
BoardBabe Posted December 17, 2005 Share Posted December 17, 2005 attatch Link to comment Share on other sites More sharing options...
MCT Posted December 17, 2005 Share Posted December 17, 2005 here ya gohideme.exe Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now