Advertisement

Run a program hidden in Windows 10

Do you know that you can start an application hidden in Windows? Sometimes you need to because some apps can run in the background doing their task without interrupting your workflow. You might want to run an app hidden from a batch script, let it do its work and not show any window. In this article, we will see all ways to run a program hidden in Windows 10.

Advertisеment

Windows 10 run hidden bannerThere are several ways to start an application hidden in Windows 10. It can be done without third party tools and with the help of some useful third party tools. Here are the easiest ways to do it.

In the article, we will hide Notepad as an example. You can use the same method to hide any other app you want.

Method 1. Using VBScript

This is the old and "traditional" way to start apps hidden. It works in every Windows version where VBScript is available. All modern Windows versions have VBScript support.

Open your favorite text editor and paste the following text.

Dim WShell
Set WShell = CreateObject("WScript.Shell")
WShell.Run "Notepad.exe", 0
Set WShell = Nothing

Save it to a file with the .VBS extension. When you double click it, it will start Notepad hidden.

Windows 10 create VBS file Windows 10 save VBS file To call it from a batch file, execute it as follows:

wscript ""path\to\your vbs file.vbs"

Windows 10 run VBS fileHere, the Run method of the Wscript.Shell object runs a program in a new process. The second parameter is 0, which tells it to run the application hidden.
If you need to run an application with some command line arguments, the syntax is as follows:

WShell.Run "path\to\app.exe /argument1 /argument2", 0

If the application path contains spaces, add quotes to the beginning and to the end of the path. For example:

WShell.Run """" & "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" & """", 0

Hide process Windows 10 extra quotes 1You can verify that the app is running by opening Task Manager. You will see Notepad.exe running but no window will be shown for it.Windows 10 run program hidden

Method 2. Using PowerShell

PowerShell in Windows 10 and earlier versions comes with a built-in cmdlet Start-Process which can be used to start programs hidden too.
The syntax is as follows:

Start-Process -WindowStyle hidden -FilePath Notepad.exe

Windows 10 create PS1 fileIf you save this text in a file with a .PS1 extension, then you can call it from a batch file as follows:

powershell -executionPolicy bypass -file "path\to\my file.ps1"

Windows 10 save PS1 file Windows 10 run PS1 file Windows 10 PS1 file started

Method 3. Using a third party tool

There are a number of third party tools which can use to manipulate window states. The only problem with such third party tools is that they often trigger false positives in antivirus software. If you need to use a third party tool, I suggest you to play with these:
Quiet

The syntax is as follows:

Quiet.exe "path\to\executable file.exe"

NirCmd by NirSoft
NirCmd is a powerful console tool which can do a lot of useful tricks. One of its options is the ability to start a process hidden.
The syntax is as follows:

nircmd exec hide "C:\Windows\Notepad.exe"

That's it. If you use some alternative way to start an app hidden in Windows 10, feel free to share it in the comments.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

17 thoughts on “Run a program hidden in Windows 10”

  1. This works with Notepad, but it can’t find any files elsewhere. I put in proper path with quotations. Nothing doing. Have you tried running it with other installed applications?

      1. Just replace notepad with any other program that has an actual path. Like “C:\Program Files (x86)\VSO\ConvertX\6\ConvertXtoDvd.exe”. I run the script and it says it can’t find it. I run VBS every day. I even put it on root drive. Not that I want to run above invisibly, but I was just trying it out.

        1. I figured out what is the problem.
          If path contains spaces, like in your case in “Program Files”, you need to use extra quotes in the Run method arguments. See this image:
          Hide process Windows 10 extra quotes Hide process Windows 10 extra quotes 1
          Added this to the article.

  2. :( doesn`t work on wind 10 :( need for one game to hide HxD.exe
    app start after using cmd, PowerShell but I can see it in in task manager
    fu.. why hidetoolz doesn`t work on new windows? :(

    1. this is because your app is relaunches itself with a new instance quickly, so it appears visible.
      #notabug

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.