Author

Topic: Windows 10 .bat file: Condition based on time (Read 141 times)

sr. member
Activity: 700
Merit: 294
January 01, 2018, 03:08:27 AM
#2
Hi,

Can I have some guide on Window 10 .bat coding. I want to implement condition based on time i.e. for:

- Miner-a (eg. ETH) should operate between 12:00 AM to 7:59 AM
- Miner-b (eg. Bitcoin Gold) should operate between 8:00 AM to 11:59 PM

Thanking you in anticipation and looking forward.

Regards,

Rizwan 

Rather than try to put it all into a single batch script, why not use the Scheduled Tasks feature of Windows to call and run the individual .bats for each coin for the time periods you wish?
full member
Activity: 252
Merit: 100
Hi,

Can I have some guide on Window 10 .bat coding. I want to implement condition based on time i.e. for:

- Miner-a (eg. ETH) should operate between 12:00 AM to 7:59 AM
- Miner-b (eg. Bitcoin Gold) should operate between 8:00 AM to 11:59 PM

Thanking you in anticipation and looking forward.

Regards,

Rizwan 
Jump to: