cyberthug Posted December 13, 2004 Share Posted December 13, 2004 hi..although i'm usinng runonceex.cmd to install majority of my programs.. it does call one or two other .cmd's which i use to run some extra processes, as i couldn't get it to work in runonceex.cmd..so would it be possible to make a batch file run silently/minimized so that it's doesn't cover up the whole screen when runing a short batch file..thanx.. Link to comment Share on other sites More sharing options...
Cartoonite Posted December 13, 2004 Share Posted December 13, 2004 Download cmdow from here.On second thought, if you followed the Guide's example on using RunOnceEx.cmd, are you not already using cmdow in that script? Just call the same function again at the start of your other scripts.cmdow @ /HID@echo off Link to comment Share on other sites More sharing options...
cyberthug Posted December 13, 2004 Author Share Posted December 13, 2004 nah.. i think u misunderstood what i was tryin to say...i am using runonceex.cmd With cmdow...but i'm using it to call another .cmd batch file, which does NOT use cmdow..it's just a normal .cmd e.g.@echo offECHO.ECHO Installing WinAmp 5.07 ProECHO Please wait...start /wait %systemdrive%\install\winamp\winamp507_pro.exe /S /ncrc /install=DSRFQAstart taskkill.exe /F /IM winamp.exeregedit /s %systemdrive%\install\winamp\regkey.regEcho Unregistering WinAmp AgentREG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WinampAgent /fexiti'm using that WITHOUT cmdow, as i cannot call the taskkill.exe line. (either i don't know how to do it, or its not possible) i have tried.. didn't work.so the batch file i'm mentioning in the (code), can i get that to run silently, or atleast minimized? Link to comment Share on other sites More sharing options...
MCT Posted December 13, 2004 Share Posted December 13, 2004 u can run it silently calling your batch from within an autoit script using @SW_HIDE OR u can use cmdow u put cmdow @ the bigging of your scriptcmdow @ /HID@echo offECHO.ECHO Installing WinAmp 5.07 ProECHO Please wait...start /wait %systemdrive%\install\winamp\winamp507_pro.exe /S /ncrc /install=DSRFQAstart taskkill.exe /F /IM winamp.exeregedit /s %systemdrive%\install\winamp\regkey.regEcho Unregistering WinAmp AgentREG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WinampAgent /fexitEDIT: & the command is try pskill ? to kill the task, once its in system32 directoryadd: pskill filename Link to comment Share on other sites More sharing options...
gunsmokingman Posted December 13, 2004 Share Posted December 13, 2004 Try This It Will Make A Small Box With Most Of What Was Echo Is Now On The Title bar@echo offMode Con: Cols=40 Lines=2color 8fTITLE Installing WinAmp 5.07 ProECHO.ECHO Please wait...start /wait %systemdrive%\install\winamp\winamp507_pro.exe /S /ncrc /install=DSRFQAstart taskkill.exe /F /IM winamp.exeregedit /s %systemdrive%\install\winamp\regkey.regTITLE Unregistering WinAmp AgentREG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WinampAgent /fexit Link to comment Share on other sites More sharing options...
Cartoonite Posted December 13, 2004 Share Posted December 13, 2004 I didn't misunderstand you at all. Is there any reason this other cmd file can't use cmdow? If you think about it, RunOnceEx.cmd is just a normal .cmd file too. The only thing that differentiates it is the fact that the very first thing it does is execute the cmdow command that hides the window. At least, that's my interpretation of it.Adding that same cmdow line to the start of this file should accomplish exactly what you want. Try using this as a replacement for the code you posted:cmdow @ /HID@echo offstart /wait %systemdrive%\install\winamp\winamp507_pro.exe /S /ncrc /install=DSRFQAtaskkill /F /IM winamp.exeregedit /s %systemdrive%\install\winamp\regkey.regREG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v WinampAgent /fexitI removed the echo statements since there is no need for them in an invisible environment. Incidently, for Winamp in particular, Alanoll created an MSI for it that you can download from here. This is what I'm using to install Winamp on my uA CD. Of course, this won't help with any of the other cmds that you need to call, but it may let you get rid of this one. EDIT: & the command is try pskill ? to kill the task, once its in system32 directoryadd: pskill filenameTaskkill is a Windows command that, AFAIK, provides essentially the same functionality as pskill. As coded in both of the posted batch files it should do what he needs it to do. Link to comment Share on other sites More sharing options...
cyberthug Posted December 13, 2004 Author Share Posted December 13, 2004 SWEET!works great!!! never knew the /HID for cmdow...!!! ADDING THAT TOO MORE OF MY BATCHES!!! lol!thanx so much! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now