Network script

Message boards : BOINC Manager : Network script
Message board moderation

To post messages, you must log in.

AuthorMessage
[AF>France>Est>Bourgogne]Spike

Send message
Joined: 22 Jan 20
Posts: 1
France
Message 95427 - Posted: 22 Jan 2020, 10:44:57 UTC
Last modified: 22 Jan 2020, 10:53:50 UTC

Hello,

I have work on a little network script to run Boinc from a Windows using Administrative share, using different data directory set as running BOINC computer name.
In my case, BOINC was on D drive in BOINC directory.

Could not work on first run but is OK at 2nd.
Shouldn't leave trace on computers.
Running from network can slow tasks.
Running from network can increase network use.


@ECHO OFF
pushd %~dp0

REM Name of the computer hosting the software (ex : PcCoinb-01)
SET server_name=

REM Name of the drive where is the BOINC directory (ex : C or D or E)
SET server_drive=

REM Directory of BOINC in case you rename it (ex : IAmNotABoincDirectory or simply BOINC)
SET boinc_dir=

ECHO DATADIR = \\%server_name%\%server_drive%$\%boinc_dir%\%computername%
ECHO EXE = \\%server_name%\%server_drive%$\%boinc_dir%\boincmgr.exe

REM Registry keys for install and data directory
ECHO INSTALLDIR REGISTRY KEY
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Space Sciences Laboratory, U.C. Berkeley\BOINC Setup" /v INSTALLDIR /t REG_SZ /d "\\%server_name%\%server_drive%$\%boinc_dir%" /f
ECHO+
ECHO DATADIR REGISTRY KEY
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Space Sciences Laboratory, U.C. Berkeley\BOINC Setup" /v DATADIR /t REG_SZ /d "\\%server_name%\%server_drive%$\%boinc_dir%\%computername%" /f
ECHO+

timeout 10
START \\%server_name%\%server_drive%$\%boinc_dir%\boincmgr.exe /s
ID: 95427 · Report as offensive

Message boards : BOINC Manager : Network script

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.