Hide cgminer's window!


SUBMITTED BY: Guest

DATE: July 6, 2013, 3:28 p.m.

FORMAT: Text only

SIZE: 3.4 kB

HITS: 1742

  1. Since I am unable to post anywhere else I guess I'll post this here.
  2. Something that has bothered me about CGminer is the annoying window that I could only minimize to the taskbar - so I went about setting this up so it runs in the background and even starts when my system does.
  3. I guess this could be used for other "purposes" because it makes CGminer invisible unless you look at processes, but it's your prerogative how you wish to use this. This guide will only work for windows users, I may create one for linux users in the future.
  4. And since this is the "newbies" section I'll start from the beginning:
  5. First, of course, you need CGminer:
  6. http://ck.kolivas.org/apps/cgminer/
  7. CGminer can be a little daunting to someone new to all of this so here is an easy guide written by someone here:
  8. http://pastebin.com/YZatjsx4
  9. *Make sure you do update your cgminer.conf file with your settings and not just run it from the .bat you originally created - how to do that is at the bottom of the guide linked above.
  10. Okay, so once you have CGminer actually set up and working we can go about getting it to run in the background.
  11. *Remember, this makes CGminer nearly invisible - you will need to open up your task manager and click on the "Processes" tab to see it. (Access the task manager by using CTRL+ALT+DEL)
  12. All you need to do is create a new .txt file in your CGminer folder (Right click, new, Text Document)
  13. *Name it something like "NoWindow" so you remember what it is.
  14. Now, paste the following in the text document:
  15. Set WshShell = CreateObject("WScript.Shell" )
  16. WshShell.Run chr(34) & "The directory of your cgminer.exe" & Chr(34), 0
  17. Set WshShell = Nothing
  18. *Replace "The directory of your cgminer.exe" with the correct directory of YOUR cgminer.exe, but leave the parentheses.
  19. *Example: "C:\Bitcoin\cgminer-3.1.0-windows\cgminer.exe" that's what I enter there for my directory.
  20. Now, you need to change the file extension to .vbs from .txt (In order to do this click on start, in the search type in "Folder Options", click on the "View" tab, uncheck "Hide extensions for known file types". Then simply right click the and select rename - you can change the .txt on the end to .vbs.
  21. Now if you wish to start cgminer in invisible mode just double click the .vbs file.
  22. *Open up the task manager and check to see if it's working.
  23. Okay, if you want to also have CGminer start when your computer does all you need to do is create a shortcut (right click, Create Shortcut) and move that to your startup programs folder.
  24. To get to your startup programs folder you first need to go back to "Folder Options" (click on the "View" tab, select (dot) "Show hidden files, folders, and drives").
  25. Now copy your .vbs shortcut into C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup.
  26. Now your done! I recommend you restart your computer and check the Task Manager to make sure it is working.
  27. To disable it as a startup program either delete it from the "Startup" folder or disable it in msconfig.
  28. I hope this helps a few people!

comments powered by Disqus