Bitcoin Forum
July 15, 2024, 06:42:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Hidden claymore .bat file  (Read 213 times)
pr0letar (OP)
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
October 31, 2020, 01:09:20 PM
 #1

Cheers

So i wanted my claymore .bat file to start om Windows 10
But not just start. Also start hidden.
What do I have to write into the .bat file?
And the just place IT in the startup Line with other programs correct?
And how do i hey IT to show when its hidden. If i want to see status in the miner.  

Or Better to find another miner?

Kind regards
grendel25
Legendary
*
Offline Offline

Activity: 2296
Merit: 1031



View Profile
November 01, 2020, 06:24:14 AM
 #2

First try this with a .vbs file/script

Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
Do
WshShell.Run "C:\<your_directory>\ccminer.exe -r 0 -t 3 -a skein -o stratum+tcp://hub.miningpoolhub.com:12656 -u user.worker -p x", 0 & Chr(13) & Chr(10)
Loop

of course, update .exe and -flags for your situation above

You can do more assembled with visual basic.  in addition to your bat file, setup a visual basic script file.  So for example, make your hidden.vbs file with this code

Code:
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

Or, this may work better if the above doesn't work for passing various additional parts of the bat file

Code:
CreateObject("Wscript.Shell").Run "" & WScript.Arguments(0) & "", 0, False

and then do this bat file to run your bat file for claymore so it is hidden

Code:
wscript.exe "C:\Wherever\invisible.vbs" "C:\Some Other Place\MyBatchFile.bat"

You can look in your processes in Task Manager to see it running.  If you are mining to a pool you can also see the status of the miner there. 

..EPICENTRAL .....
..EPIC: Epic Private Internet Cash..
.
.
▄▄█████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄████████████████▀▀█████▄
▄████████████▀▀▀    ██████▄
████████▀▀▀   ▄▀   ████████
█████▄     ▄█▀     ████████
████████▄ █▀      █████████
▀████████▌▐       ████████▀
▀████████ ▄██▄  ████████▀
▀█████████████▄███████▀
▀█████████████████▀
▀▀█████████▀▀
.
▄▄█████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄████████▀█████▀████████▄
▄██████▀  ▀     ▀  ▀██████▄
██████▌             ▐██████
██████    ██   ██    ██████
█████▌    ▀▀   ▀▀    ▐█████
▀█████▄  ▄▄     ▄▄  ▄█████▀
▀██████▄▄███████▄▄██████▀
▀█████████████████████▀
▀█████████████████▀
▀▀█████████▀▀
.
.
[/center]
adaseb
Legendary
*
Offline Offline

Activity: 3808
Merit: 1723



View Profile
November 02, 2020, 05:02:21 AM
 #3

Cheers

So i wanted my claymore .bat file to start om Windows 10
But not just start. Also start hidden.
What do I have to write into the .bat file?
And the just place IT in the startup Line with other programs correct?
And how do i hey IT to show when its hidden. If i want to see status in the miner.  

Or Better to find another miner?

Kind regards

Basically follow what the guy above me has posted. If its too advanced for you there are some small apps you can download called "Hide Window" or something similar which is a GUI that can hide the window for you. Some programs might even do it automatically on every restart.

The easiest way to check if its mining is just go to the remote terminal in your browser. Claymore by default has remote monitoring enabled on port 3333 so all you need to do is go to 127.0.0.1:3333 and it should load right up. If there is a password then change it in your command file.  If you want to stop mining then just log out as a user and it should automatically stop mining.

███████████████████████
███████████████████████
████████▀█▀████████████
████████████████████████
████████████████▀▀██████
████▀▀▀█████████████████
████████████▄▄▄▄███████
█████████████████▄▄▄████
█████████████████▀█████
████████████▀██▀████████
████████████████████████
███████████▄▄█████▄▄█████

███████████████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
.
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██




██
██
██
██
██
██
██
██
██
████
████▀▀▀
▀▄
▌░░▐▌
█████▄▄█
████████▄
████████▌
███████
███████
██████
██████
█████
██




██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
.
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
.
..Play Now..
[
DrG
Legendary
*
Offline Offline

Activity: 2086
Merit: 1035


View Profile
November 02, 2020, 08:08:22 AM
 #4

It's relatively easy to write. Google for hiding command prompt visual basic and you should see some example you can copy paste into the bat.

DO NOT google for apps to hide a bat file - that's a sure fire way to get malware onto your PC. I searched for that once when I needed to run an auto mouse clicker without it being in the way when ALT-tabbing and the amount of dangerous sites in google search was insane.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!