brooker
F@H Team #70335 Event Manager
Skript zur Lösung des aktuellen Downloadproblems:
Voraussetzung:
- die Foldingsoftware muss so installiert sein, dass sie automatisch bei Neustart gestartet wird (ob aktiv oder Pause ist egal)
- das Skript muss in den Autostart eingebunden werden
- kein Windows Startpasswort (kann mit Passwort funktionieren, habe ich aber noch nicht getestet)
- weitere Hinweise sind im Script selbst hinterlegt
Funktionsweise:
Das Skript prüft, ob der Prozess FAHCore.exe läuft. Wenn nicht, wird der Rechner neu gestartet. Die Wartezeit zwischen den Prüfungen können vom Benutzer verändert werden.
Bitte den Inhalt des Spoilers in einen Editor, wie bspw. Notepad, hineinkopieren und unter Team70335_downloadfix_v1.bat abspeichern. Danach diese .bat-Datei in den Windows Autostart einbinden. Den Rechner neu starten und fertig. Bitte prüfen, ob die Batch nach dem Neustart wirklich anläuft. Es müsste sich ein Fenster öffnen.
Happy Folding.
Grüße
brooker
-------------------------------------------------------------------------------------------------
... by team members of folding team PC Games Hardware - 70335 - GERMANY
Credits to 70335-team members brooker, mattinator and foldinghomealone for inspiration and coding
Special thanks to all folders
-------------------------------------------------------------------------------------------------
... by team members of folding team PC Games Hardware - 70335 - GERMANY
Credits to 70335-team members brooker, mattinator and foldinghomealone for inspiration and coding
Special thanks to all folders
-------------------------------------------------------------------------------------------------
Voraussetzung:
- die Foldingsoftware muss so installiert sein, dass sie automatisch bei Neustart gestartet wird (ob aktiv oder Pause ist egal)
- das Skript muss in den Autostart eingebunden werden
- kein Windows Startpasswort (kann mit Passwort funktionieren, habe ich aber noch nicht getestet)
- weitere Hinweise sind im Script selbst hinterlegt
Funktionsweise:
Das Skript prüft, ob der Prozess FAHCore.exe läuft. Wenn nicht, wird der Rechner neu gestartet. Die Wartezeit zwischen den Prüfungen können vom Benutzer verändert werden.
Bitte den Inhalt des Spoilers in einen Editor, wie bspw. Notepad, hineinkopieren und unter Team70335_downloadfix_v1.bat abspeichern. Danach diese .bat-Datei in den Windows Autostart einbinden. Den Rechner neu starten und fertig. Bitte prüfen, ob die Batch nach dem Neustart wirklich anläuft. Es müsste sich ein Fenster öffnen.
REM ---------------------------------------------------------------------
REM
REM Team70335_downloadfix_v1.bat
REM
REM Windows-script to reboot PC after inactivity of FAHclient for Windows 7/10
REM
REM by team members of folding team PC Games Hardware - 70335 - GERMANY
REM
REM Credits to 70335-team members brooker, mattinator and foldinghomealone for inspiration and coding
REM
REM Special thanks to all folders
REM
REM -----------------------------------------------------------------------
REM -----------------------------------------------------------------------
REM
REM
REM How To
REM 1. FAH Client needs to be autostarted after boot
REM 2. Script needs to be autostarted after boot
REM 3. Script needs to be modified user-specific --> after 'How To'
REM
REM -----------------------------------------------------------------------
set logdir=%UserProfile%\AppData\Roaming\FAHClient
REM Directory for log file
set /A WUdownloadtime=60
REM Extend time if download of a WU takes longer than 60sec
set /A timerepeat=300
REM Sets intervall in which check is performed
set fahprocess="FahCore_2"
REM Set priority of folding slots
REM "FahCore_2" is default. It checks if (at least one) GPU-slot is folding. If not, reboot
REM "FahCore_A" checks if (at least one) CPU-slot is folding. If not, reboot
REM "FahCore_" checks if (at least one) GPU- or (at least one) GPU-slot is folding, which means that reboot is initiated only if both CPU and GPU are not folding
REM For mulit-GPU systems: it reboots only if all slots are not folding
REM -----------------------------------------------------------------------
REM Config Verzeichnis wird geöffnet // Config directory opened for log file
cd /d %logdir%
echo.
echo Wartezeit nach Booten
echo Waiting time after reboot
echo.
timeout /T 60
FAHCLIENT --send-unpause
echo. >>team70335_downloadfix.log
echo %date% %time:~0,8% Prüfroutine gestartet // Checking starts >>team70335_downloadfix.log
echo %date% %time:~0,8% Credits to 70335-team members brooker, mattinator and foldinghomealone >>team70335_downloadfix.log
echo %date% %time:~0,8% Special thanks to all folders >>team70335_downloadfix.log
echo. >>team70335_downloadfix.log
:START
echo.
echo Prüfen ob der Prozess %fahprocess% aktiv ist
echo Checking if process %fahprocess% is acitve
echo.
tasklist | findstr %fahprocess%
IF ERRORLEVEL 1 ( GOTO :WIEDERHOLEPRFNG ) ELSE ( GOTO :VONANFANGAN )
:WIEDERHOLEPRFNG
echo.
echo %fahprocess% ist nicht aktiv. Wiederholte Prüfung in 60sec. Falls dann immer noch nicht, NEUSTART
echo %fahprocess% not active. Repeated check in 60sec. If still not active, reboot is initiated
echo.
timeout /T %WUdownloadtime%
tasklist | findstr %fahprocess%
IF ERRORLEVEL 1 ( GOTO :NEUSTART ) ELSE ( GOTO :VONANFANGAN )
:VONANFANGAN
echo.
echo Prozess %fahprocess% ist aktiv.
echo Process %fahprocess% is active.
echo.
REM In 300 Sekunden erfolgt eine erneute Abfrage ob der Prozess läuft. Der Wert kann nach Bedarf angepasst werden.
REM Repeat check every 300sec. Value can be adjusted
echo %date% %time:~0,8% Falten aktiv // Folding active >>team70335_downloadfix.log
timeout /T %timerepeat%
goto :START
:NEUSTART
echo.
echo Neustart eingeleitet
echo Reboot initiated
echo.
echo %date% %time:~0,8% Neustart eingeleitet // Reboot initiated >>team70335_downloadfix.log
shutdown /r /f
REM
REM Team70335_downloadfix_v1.bat
REM
REM Windows-script to reboot PC after inactivity of FAHclient for Windows 7/10
REM
REM by team members of folding team PC Games Hardware - 70335 - GERMANY
REM
REM Credits to 70335-team members brooker, mattinator and foldinghomealone for inspiration and coding
REM
REM Special thanks to all folders
REM
REM -----------------------------------------------------------------------
REM -----------------------------------------------------------------------
REM
REM
REM How To
REM 1. FAH Client needs to be autostarted after boot
REM 2. Script needs to be autostarted after boot
REM 3. Script needs to be modified user-specific --> after 'How To'
REM
REM -----------------------------------------------------------------------
set logdir=%UserProfile%\AppData\Roaming\FAHClient
REM Directory for log file
set /A WUdownloadtime=60
REM Extend time if download of a WU takes longer than 60sec
set /A timerepeat=300
REM Sets intervall in which check is performed
set fahprocess="FahCore_2"
REM Set priority of folding slots
REM "FahCore_2" is default. It checks if (at least one) GPU-slot is folding. If not, reboot
REM "FahCore_A" checks if (at least one) CPU-slot is folding. If not, reboot
REM "FahCore_" checks if (at least one) GPU- or (at least one) GPU-slot is folding, which means that reboot is initiated only if both CPU and GPU are not folding
REM For mulit-GPU systems: it reboots only if all slots are not folding
REM -----------------------------------------------------------------------
REM Config Verzeichnis wird geöffnet // Config directory opened for log file
cd /d %logdir%
echo.
echo Wartezeit nach Booten
echo Waiting time after reboot
echo.
timeout /T 60
FAHCLIENT --send-unpause
echo. >>team70335_downloadfix.log
echo %date% %time:~0,8% Prüfroutine gestartet // Checking starts >>team70335_downloadfix.log
echo %date% %time:~0,8% Credits to 70335-team members brooker, mattinator and foldinghomealone >>team70335_downloadfix.log
echo %date% %time:~0,8% Special thanks to all folders >>team70335_downloadfix.log
echo. >>team70335_downloadfix.log
:START
echo.
echo Prüfen ob der Prozess %fahprocess% aktiv ist
echo Checking if process %fahprocess% is acitve
echo.
tasklist | findstr %fahprocess%
IF ERRORLEVEL 1 ( GOTO :WIEDERHOLEPRFNG ) ELSE ( GOTO :VONANFANGAN )
:WIEDERHOLEPRFNG
echo.
echo %fahprocess% ist nicht aktiv. Wiederholte Prüfung in 60sec. Falls dann immer noch nicht, NEUSTART
echo %fahprocess% not active. Repeated check in 60sec. If still not active, reboot is initiated
echo.
timeout /T %WUdownloadtime%
tasklist | findstr %fahprocess%
IF ERRORLEVEL 1 ( GOTO :NEUSTART ) ELSE ( GOTO :VONANFANGAN )
:VONANFANGAN
echo.
echo Prozess %fahprocess% ist aktiv.
echo Process %fahprocess% is active.
echo.
REM In 300 Sekunden erfolgt eine erneute Abfrage ob der Prozess läuft. Der Wert kann nach Bedarf angepasst werden.
REM Repeat check every 300sec. Value can be adjusted
echo %date% %time:~0,8% Falten aktiv // Folding active >>team70335_downloadfix.log
timeout /T %timerepeat%
goto :START
:NEUSTART
echo.
echo Neustart eingeleitet
echo Reboot initiated
echo.
echo %date% %time:~0,8% Neustart eingeleitet // Reboot initiated >>team70335_downloadfix.log
shutdown /r /f
Happy Folding.
Grüße
brooker
Zuletzt bearbeitet: