Maybe some one might need it, so i would like to share my solution to startup and hide miner in addition to startup and hide wallet for solo mining, it can also be used to autostart and hide miner while pool mining.
I use this to reload everything after a windows update or restart for whatever reason.
Also it hides the miner so it is only visible in the task manager because i dont want it in in my face, or getting accidently closed while doing other stuff on the device.
(Do a test run with a normal start of the bat file before using the script to make sure everything is setup right in the miner itself.)
To create the script we first need to show the file name extensions.
On Windows 10
Start Windows Explorer, you can do this by opening up any folder.
Click Organize.
In the right top corner check show file name extensions.
On Windows 7
Start Windows Explorer, you can do this by opening up any folder.
Click Organize.
Click Folder and search options.
Click the View tab.
Scroll down until you notice Hide extensions for known file types, un-check this line by clicking the check box.
Now we Create [Yourfilename].txt
Copy paste this in your .txt file and eddit the information related to your device without [].
(rename the point \
run.bat to the name of the .bat you use to start your miner.)
Set WshShell = CreateObject("WScript.Shell")
cmds=WshShell.RUN("C:\[the file path to your Minerd]\run.bat", 0, False)
Set WshShell = Nothing
Safe and exit.
Now rename the file from [Yourfilename].txt to [Yourfilename].vbs
Double klick and open the task Manager, check if your miner is runing with high cpu load. It it dies everything is fine.
To put it into autostart press Windows Key+R and copy paste
shell:startup
Copy [Yourfilename].vbs into the folder.
Restart Device and check Task manager for miner process.
For solo mining put a shortcut of m-wallet.exe into the autostart or simply check Start magi on system login in the wallet Configuration tab. You also can hide it into the info tab next to you clock by checking the Option in tue configuration.
Kindly note that this only will work when your miner itself already is set up right.