Dobby, on Feb 15 2006, 09:39 PM, said:
YES! Does what it says on the tin. Now I could be using the various utils incorrectly but from my observations this is how they compare:
- CMDOW /HID - Only hides the windows once it's opened
- HIDCON - Does a create job of hiding the console window but stop all output completely so you can't log anything
- RunHiddenConsole - Does exactly what I need. Hides the console (doesn't flash up at all) and also allows output to be piped to a file for later review
@RogueSpear
I don't think that's right with regards to WMI . I wrote some C# apps that use WMI to setup network printers and rename user/computer names and it works fine from cmdlines.txt.
Hi everyone.I am a complete beginner at these forums so please forgive me for any errors
or admissions.
I am using this command file to silently install a number of applications.But I would like
to hide the Dos window while the programs are being installed.So i am using a small
utilitie to hide the dos window by the name of RunHiddenConsole.exe.But in spite of every
effort on my behalf I cannot get it to work here is my batch file listed below
I have also added the following lines to my WINNT.SIF and CMDLINES.TXT Files but I donot
Think it is necessary to add any entries two these Files.
CMDLINES.TXT ".\System32\RunHiddenConsole.exe"
WINNT.SIF [GuiRunOnce]
"%systemdrive%\System32\RunHiddenConsole.exe"
System32 Folder I have added the RunHiddenConsole.exe File to this Folder under $OEM$ Folder structure
----------------------------------
@echo off
TITLE Windows XP SP3 - Unattended Installation
RunHiddenConsole.exe /W %systemdrive%\Install\install.cmd I am using this line to run the exe file
==============================================
ECHO.
ECHO Installing Adobe Reader 8
ECHO Please wait...
start /wait %systemdrive%\Install\AdbeRdr812_en_US.exe /sPB /rs
ECHO.Done
ECHO.
ECHO Installing Adobe Flash Player
ECHO Please wait...
start /wait %systemdrive%\Install\install_flash_player.exe /s
ECHO.Done
ECHO
ECHO Installing DirectX 9.0c
ECHO Please wait...
start /wait %systemdrive%\Install\directx_9c_redist.exe /t:"%temp%" /q
ECHO.Done
ECHO.
ECHO Installing Google Earth
ECHO Please wait...
start /wait %systemdrive%\Install\GoogleEarthWin.exe /s /a /s /v"/qb"
ECHO.Done
ECHO.
ECHO Installing Nero 6.3 Express
ECHO Please wait...
start /wait %systemdrive%\Install\nero63120.exe /SILENT /NOREBOOT
ECHO.Done
ECHO.
ECHO Installing OO Defrag Professional 8.5
ECHO Please wait...
start /wait %systemdrive%\Install\OODefrag85ProfessionalEnu.exe /s /a /s /v"/qb"
ECHO.Done
ECHO.
ECHO Installing TuneUp Utilities 2007
ECHO Please wait...
start /wait %systemdrive%\Install\TU2007TrialEN.exe /QB
ECHO.Done
ECHO.
ECHO Restarting the PC in 30 seconds...
shutdown.exe -r -f -t 30 -c "Windows XP will now restart in 1 minute, this will give
enough time for the shortcuts to update and for the shell to fully load before it\'s ready to restart!"
EXIT
Iff any of you more advanced programers could give me the syntax for this line I would be very
grateful and any other tips as well.