Trying to run a .bat file as a hidden window

Nefarious

New member
Local time
4:04 PM
Messages
4
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 My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
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 My Computers

  • At a glance

    W7PROIntel i7-6820HQ @ 2.7GHz16GB
    Computer type
    Laptop
    Computer Manufacturer/Model Number
    Dell Precision 7510
    OS
    W7PRO
    CPU
    Intel i7-6820HQ @ 2.7GHz
    Memory
    16GB
  • At a glance

    W7Pro
    Computer type
    Laptop
    OS
    W7Pro
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.

Minimized.jpg

Hope this helps,
Shawn

EDIT:
LOL, RA beat me. ;)
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone

My Computers My Computers

  • At a glance

    W7PROIntel i7-6820HQ @ 2.7GHz16GB
    Computer type
    Laptop
    Computer Manufacturer/Model Number
    Dell Precision 7510
    OS
    W7PRO
    CPU
    Intel i7-6820HQ @ 2.7GHz
    Memory
    16GB
  • At a glance

    W7Pro
    Computer type
    Laptop
    OS
    W7Pro
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 My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
Sure can:

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

My Computer My Computer

At a glance

Windows 7 Enterprise (x64); Windows Server 20...16GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg
Back
Top