How can I hide cmd while perform a batch file RRS feed

  • Question

  • Hello,

    I created an batch file to implement teamviewer in a network.
    It works silent but there is one problem the command prompt is open untill the procedures are done.
    How can i hide the command prompt while running this script?

    @echo off
    xcopy \\\tcsdfsroot\TCSSoftware\Admin\TeamViewer\V8.0\HTC_SCCM_INSTALL\*.* c:\TVM_HTC_install\ /C /Y
    msiexec /i C:\TVM_HTC_Install\TeamViewer_Host.msi /quiet /norestart
    regedit /S C:\TVM_HTC_Install\Teamviewer_reggoed.reg
    del C:\TVM_HTC_Install /Q

    Thursday, May 16, 2013 10:54 AM

All replies

  • you can try /min but, it all depends on how your calling your script from the task sequence.
    Thursday, May 16, 2013 12:33 PM
  • Thnx for your option but i solved the problem, i've used an vbs file in the same folder with this script >    CreateObject("Wscript.Shell").Run "install.bat",0,True

    install.bat is the name of the bat file,  if i open the vbs file it will open the bat on silent mode.

    Friday, May 17, 2013 6:24 AM