how to run bat file with other bat file when one is crushed or stopped working

Status
Not open for further replies.

saqib raja

Commendable
Nov 2, 2016
3
0
1,520
i want to run a.bat file with b.bat file, when a.bat is crushed or stopped working.
may a.bat file contained this stuff;

genoil.exe -c zec-us.coinmine.pl:7007 -u raj1 -p z -i 20 -w 64 -P 0
pause

i would like to run as it gets stuck after some time.
thanks,
 
Solution
i have diabled my error display popup window through registry, could not find proper solution. genoil or other developers are working still.
just got a better way to restart automatically rather then watching a black screen and restart manually by using the following scrypt in bat file. it working great.

:restart
start/wait genoil.exe -c zec-us.coinmine.pl:7007 -u abc -p z -i 20 -w 64 -P 0
taskkill /F /IM genoil.exe
goto restart

Ralston18

Titan
Moderator
I noticed "coinmine" in your batch file. What exactly is genoil.exe being expected to do.....?

And I see "pause". Seems out of context....

For now I would consider one of two things: 1) either genoil.exe runs and completes then there is the "pause". Or 2) genoil.exe is hanging up and the "pause" is never reached.

Could be something in genoil.exe and/or all of the parameters being applied.

First of all use your logs to see what is happening: e.g., Event Viewer, Performance Monitor, Resource Monitor, Task Manager.

Look for errors and warnings. Could be it is just some lengthy process timing out due to some bug or configuration error.

Work with your .bats to see if you can identify exactly where things get "stuck".
 

saqib raja

Commendable
Nov 2, 2016
3
0
1,520





genoil is a cryptocurrency miner, trying to mine new currency zcash, but their isn't any stable miner yet in market. the best way is to restart the process again when it hangs/stop working/crashes.
i,m linking some screen shots so that you can better understand what i need to do.

https://drive.google.com/file/d/0Bz8YUwIqO548M3k0Z1RoWXZuSzA/view?usp=sharing

https://drive.google.com/file/d/0Bz8YUwIqO548cldubW85ZjMxZXM/view?usp=sharing

hope to it will work.
thanks for your help
 

Ralston18

Titan
Moderator
To be honest I am not at all sure what might be necessary to diagnose and apply a fix when things get "stuck".

Did some research and it appears that the Error 21 is not at all unknown or uncommon.

This website seemed to be probably the best resource regarding genoil:

https://forum.z.cash/t/genoils-zec-miner/3791

Quite a few postings there and you may be able to glean out something relevant to your system and miner.

Just remain careful - no way of knowing what all the software may be really doing on or to your system.

And do not be counting on making any money out of it all.

Reference: http://www.coindesk.com/what-is-the-value-zcash-market-searches-answers/
 
Looking at the screenshots and your comments; It seems the "problem" you're trying to solve is not that Genoli.exe crashes, but "how to close automatically Windows Error dialog so that my BAT file can resume execution".

And I don't think you can do that (unless there's a way to disable Windows Error Reporting completely). Ask Genoli.exe' developers to fix their problem.
 

saqib raja

Commendable
Nov 2, 2016
3
0
1,520
i have diabled my error display popup window through registry, could not find proper solution. genoil or other developers are working still.
just got a better way to restart automatically rather then watching a black screen and restart manually by using the following scrypt in bat file. it working great.

:restart
start/wait genoil.exe -c zec-us.coinmine.pl:7007 -u abc -p z -i 20 -w 64 -P 0
taskkill /F /IM genoil.exe
goto restart

 
Solution
Status
Not open for further replies.