Author

Topic: Setting .bat file to run on startup (Read 1745 times)

sr. member
Activity: 378
Merit: 250
August 02, 2017, 06:13:57 AM
#18
Create a shortcut to your bat file and put it in your startup folder. Don't paste a copy. Make a shortcut. That's it.
member
Activity: 106
Merit: 10
August 02, 2017, 05:25:04 AM
#17
Just disable the need to enter a password on startup Smiley
Win+R. Type netplwiz
Then disable the need to enter password and username Smiley

im using the login user and pass because of remote desktop. i didnt think i could disable that and leave the pass empty. rdp wont let me login if i do it that way
newbie
Activity: 24
Merit: 0
August 02, 2017, 04:48:38 AM
#16
Just disable the need to enter a password on startup Smiley
Win+R. Type netplwiz
Then disable the need to enter password and username Smiley
member
Activity: 106
Merit: 10
August 02, 2017, 04:28:26 AM
#15
this cant work if there is a user/pass login on windows can it?
member
Activity: 106
Merit: 10
August 02, 2017, 04:20:39 AM
#14
i use msi afterburner to put the fans on auto when mining is going on..how do we get that to auto turn on and enable the auto switch for the fans also?
sr. member
Activity: 434
Merit: 251
August 02, 2017, 03:02:42 AM
#13



STARTUP.BAT
Quote
SET WTDIR=C:\CRYPTO\SOFTWARE\WattTool\
SET PRODIR=RIG03\

cd %WTDIR%

start WattTool-0.92.exe %PRODIR%0.ini %PRODIR%6.ini %PRODIR%12.ini %PRODIR%18.ini %PRODIR%24.ini



timeout /t 5

start cmd /k "C:\CRYPTO\POOLS\07-RUN_eth_dec-MRR.bat"

timeout 10
full member
Activity: 336
Merit: 100
August 02, 2017, 12:13:49 AM
#12
So I have my mine.bat file in the directory to run on startup on my rig but when I restart the computer it gives me an this error.

C:\Windows\system32>ethdcrminer64.exe -epool us1.ethermine.org:4444 -ewal 0x53564581a45A5520243083ce050f76eF933A1E66.Miner1 -epsw x -mode 1 -tt 68 -allpools 1
'ethdcrminer64.exe' is not recognized as an internal or external command,
operable program or batch file.

Does anyone know how I fix this?

Thanks

either change directory path or easier way is to copy mining software to C:\Windows\system32

works for me
sr. member
Activity: 700
Merit: 255
August 01, 2017, 11:40:53 PM
#11
Easy. Assuming your running Windows 10 Smiley
Copy the "MyMining.bat" file in your Claymore directory.
Create a shortcut on the desktop.
Press WIN+R and type shell:startup
Cope the shortcut into the folder.
Done.

That's awesome, thanks.  I never knew about that.  You don't know how many times I hated drilled down to the appdata\roaming\microsoft\windows\start menu\programs\startup folder.  

Thats what I originally did and it did not work at all it was giving me the error I wrote on the first post

No. In the first post you said you put the .bat file into startup folder, which cannot work. The .bat file and miner (ethdcrminer64.exe) have to be in the same folder. Otherwise Windows doesn't know where to find ethdcrminer64.exe. That's the error you got. So simply create bat file where the miner is, and then make a shortcut of the bat file, then put the shortcut into startup folder.

Yea I made a copy of the file in my mining folder, I left it in the mining folder and pasted the copy into the startup folder and it didn't work. I would need to have the file in my mining folder a copy on my desktop and a copy in the startup folder?
full member
Activity: 233
Merit: 100
Andrius | Junior Business developer at Unboxed ICO
July 30, 2017, 01:37:02 PM
#10
yup, like a guy before me wrote. than copy that shortcut to C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
change Username to your...
full member
Activity: 154
Merit: 106
July 30, 2017, 12:32:16 PM
#9
Easy. Assuming your running Windows 10 Smiley
Copy the "MyMining.bat" file in your Claymore directory.
Create a shortcut on the desktop.
Press WIN+R and type shell:startup
Cope the shortcut into the folder.
Done.

That's awesome, thanks.  I never knew about that.  You don't know how many times I hated drilled down to the appdata\roaming\microsoft\windows\start menu\programs\startup folder. 

Thats what I originally did and it did not work at all it was giving me the error I wrote on the first post

No. In the first post you said you put the .bat file into startup folder, which cannot work. The .bat file and miner (ethdcrminer64.exe) have to be in the same folder. Otherwise Windows doesn't know where to find ethdcrminer64.exe. That's the error you got. So simply create bat file where the miner is, and then make a shortcut of the bat file, then put the shortcut into startup folder.
sr. member
Activity: 700
Merit: 255
July 30, 2017, 10:48:09 AM
#8
Easy. Assuming your running Windows 10 Smiley
Copy the "MyMining.bat" file in your Claymore directory.
Create a shortcut on the desktop.
Press WIN+R and type shell:startup
Cope the shortcut into the folder.
Done.

That's awesome, thanks.  I never knew about that.  You don't know how many times I hated drilled down to the appdata\roaming\microsoft\windows\start menu\programs\startup folder. 

Thats what I originally did and it did not work at all it was giving me the error I wrote on the first post
legendary
Activity: 1096
Merit: 1021
July 30, 2017, 10:27:34 AM
#7
Easy. Assuming your running Windows 10 Smiley
Copy the "MyMining.bat" file in your Claymore directory.
Create a shortcut on the desktop.
Press WIN+R and type shell:startup
Cope the shortcut into the folder.
Done.

That's awesome, thanks.  I never knew about that.  You don't know how many times I hated drilled down to the appdata\roaming\microsoft\windows\start menu\programs\startup folder. 
sr. member
Activity: 700
Merit: 255
July 30, 2017, 10:04:54 AM
#6
Don't put your miner bat script in your startup, it needs to be in the folder of the miner i think, instead put a bat script that starts your miner script, here's an example from another forum.

Open up a new notepad and insert that code. Save it as reboot.bat. Make sure you don't save it as a text file, make sure it's a executable bat file. Then save it in your startup shell folder.

echo off

start /d " this is where your start.bat address goes" start.bat

example:

echo off
start /d "C:\Users\Desktop\my files\Claymore's Dual Ethereum+Decred AMD GPU Miner v5.3" start.bat

Thanks, I did this this worked Smiley

newbie
Activity: 24
Merit: 0
July 30, 2017, 09:09:24 AM
#5
Easy. Assuming your running Windows 10 Smiley
Copy the "MyMining.bat" file in your Claymore directory.
Create a shortcut on the desktop.
Press WIN+R and type shell:startup
Cope the shortcut into the folder.
Done.
hero member
Activity: 747
Merit: 502
July 30, 2017, 08:51:35 AM
#4
Don't put your miner bat script in your startup, it needs to be in the folder of the miner i think, instead put a bat script that starts your miner script, here's an example from another forum.

Open up a new notepad and insert that code. Save it as reboot.bat. Make sure you don't save it as a text file, make sure it's a executable bat file. Then save it in your startup shell folder.

echo off

start /d " this is where your start.bat address goes" start.bat

example:

echo off
start /d "C:\Users\Desktop\my files\Claymore's Dual Ethereum+Decred AMD GPU Miner v5.3" start.bat
full member
Activity: 154
Merit: 100
July 30, 2017, 08:21:01 AM
#3
try adding one more line in your batch command:

cd C:\your\directory\of\claymore\
ethdcrminer64.exe -epool us1.ethermine.org:4444 -ewal 0x53564581a45A5520243083ce050f76eF933A1E66.Miner1 -epsw x -mode 1 -tt 68 -allpools 1



sr. member
Activity: 560
Merit: 250
July 30, 2017, 08:12:28 AM
#2
Program is not running corectly,no idea.Check 4444 -0x535 -ewal
sr. member
Activity: 700
Merit: 255
July 30, 2017, 08:01:46 AM
#1
So I have my mine.bat file in the directory to run on startup on my rig but when I restart the computer it gives me an this error.

C:\Windows\system32>ethdcrminer64.exe -epool us1.ethermine.org:4444 -ewal 0x53564581a45A5520243083ce050f76eF933A1E66.Miner1 -epsw x -mode 1 -tt 68 -allpools 1
'ethdcrminer64.exe' is not recognized as an internal or external command,
operable program or batch file.

Does anyone know how I fix this?

Thanks
Jump to: