Since a lot of people over at the BitcoinTalk and LitecoinTalk forums had questions regarding a way to hide their CPU/GPU miner window, I decided to spent some time to come up with a solution.
This method works for all miners, such as but not limited to, CPUminer, CUDA miner, cgminer and many more.
- 1. Open notepad
- 2. Paste the following code into notepad
CreateObject(“Wscript.Shell”).Run “C:UsersUSERNAMEMinerLocationyourbat.bat”,0,True
- 3. Save this as NoWindow.vbs (save as ‘All Files’, not as .txt) or any name you would like. You should replace the location to the location of your .bat file.
- 4. Now open, NoWindow.vbs and nothing should happen 🙂 Check Task Manager to check if your miner is actually running and/or check with your pool
- 5. Additionally, you can let this program run on system start up. Simply put this vbs file here: C:UsersYOUR-NAMEAppDataRoamingMicrosoftWindowsStart MenuProgramsStartup
Did this help you? Great to hear. While making this guide, I have been drinking tons of coffee. Mind to sponsor me a cup?
BTC: 1A4KG3Asbi3YMie3WdGX7y1HTBk5rPkQA9
LTC: LTHomasTqhpAwHk13yxJ1gEGqxxBCKDqA4
Thanks for your time and donation!
PS: Check our how to secure your Bitcoin or Litecoin wallet the right way. Your coins are important, don’t let anyone steal them.
What if I want to run a shortcut or miner.exe? I tried this line and I get an error at “char 14”
CreateObject(“Wscript.Shell”).Run “E:poolerminerdSC.exe”,0,True
Hi unstephenk
Could you try to replace “ with ” ? Or try to delete the two “ symbols and type them yourself.
The double quotation mark sometimes messes up when trying to copy and paste it.
Let me know how it goes.
I have the same error and done as you instructed but had the same experience can you post a detailed one instead with more screenshot .I’m sure you want your readers to fully get the instruction
I decided to create a batch file instead. The script works fine for a little while but on some computers an error pops up saying “minerd.exe has been stopped.” What do you think could cause this?
It could be related to your anti-virus program that automatically shuts down your miner software since it is using high CPU and/org GPU power.
But there might be various causes actually.
Did you try to run the application as administrator? (Right Click –> Run as Administrator)
thanks for this really looking for one like this will update you when I use this method
It’s not working at all in my end I have diligently follow all steps but when I clicked the nowindows.vps it pop up a message showing invalid characters …
Use this:
Set oShell = CreateObject (“Wscript.Shell”)
Dim strArgs
strArgs = “cmd /c yourbat.bat”
oShell.Run strArgs, 0, false
when click on .vbs file it just execute but not hiding.