Trying to run a .bat file as a hidden window


  1. Posts : 4
    Windows 7 Ultimate x64
       #1

    Trying to run a .bat file as a hidden window


    I have a batch script I'm running for an application, but it runs in a visable cmd windows. I'd like to set it up to run in a hidden window though and add it to my startup folder or as a service. I can handle the service stuff, but I cant figure out how to run a batch file hidden in Win7.
      My Computer


  2. Posts : 84
    W7PRO
       #2

    Make a shortcut to the .bat file and click on properties and change the shortcut to run minimized. Put the shortcut in your startup folder.
      My Computers


  3. Posts : 72,049
    64-bit Windows 11 Pro for Workstations
       #3

    Hello Nefarious,

    You could create a shortcut from the BAT file, set the shortcut to "Run" Minimized as below, then add this shortcut to the "Startup" folder for this.

    Trying to run a .bat file as a hidden window-minimized.jpg

    Hope this helps,
    Shawn

    EDIT:
    LOL, RA beat me.
      My Computer


  4. Posts : 84
    W7PRO
       #4

    Brink said:

    EDIT:
    LOL, RA beat me.
    But you have a picture!
      My Computers


  5. Posts : 4
    Windows 7 Ultimate x64
    Thread Starter
       #5

    Thanks guys, but that only runs it as minimized. I want no traces of it running. I'm sure this can be done via a vbs script.
      My Computer


  6. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #6

    Sure can:

    Code:
    Set WShShell = WScript.CreateObject("WScript.Shell")
    WShShell.Run "notepad.exe", 0
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:13.
Find Us