Bitcoin Forum
November 09, 2024, 10:59:10 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Windows 10 .bat file: Condition based on time  (Read 129 times)
rizabbasi (OP)
Full Member
***
Offline Offline

Activity: 252
Merit: 100


View Profile
January 01, 2018, 07:27:10 AM
 #1

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 

Shipping beats perfection. So "ship" and then improve (that 1%).
puwaha
Sr. Member
****
Offline Offline

Activity: 700
Merit: 294


View Profile
January 01, 2018, 08: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?
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!