Determination of workplaces number
Sometimes it is necessary to start the program automatically, the parameters of which depend on the number of the JoinCloud workstation. Ways to do this are described below:
-
Run joincloudctl.exe with the -wpn option. The seat number is returned in the exit code, which can be used to set the launch parameters for other programs.
-
Put the “joincloudctl.exe -autostart” command in autoload for all users when installing JoinCloud. When started with this option (-autostart), the joincloudctl.exe application searches for files that begin with the string ‘runonlogin’ in the JoinCloud installation folder. The found files are launched, and the number of the workplace is specified as a parameter. You can run the founded files by the command:
cmd.exe /s /c "start / b " " "executable" workplaceNo
where executable – the founded file(s) ‘runonlogin*’;
workplaceNo – current workstation number
Examples:The iTalc program for correct work on all workplaces needs to be run with a parameter containing the port of connection to the program client, which should be different for each seat, for example, 4001 for the first workstation, 4002 for the second and so on.
Launch iTalc for case 1: the file must be placed in the user’s startup:
rem ————— Start iTALС client————————–
@joincloudctl -wpn
@set AWP=%errorlevel%
@echo JoinCloud Workplace number is %AWP%
@rem Start iTALC with a seperate port for each workplace
@Start _ckgdoku_QUOTckgdoku> «C:\program files (x86)\iTALC\ica.exe» -ivsport 400%AWP% -isdport 480%AWP%
Starting iTalc for case 2: the file must be named, for example, as runonlogin_iTalc.bat and placed in the folder with JoinCloud
rem ————— Start iTALС client————————–
@echo JoinCloud Workplace number is %1
@rem Start iTALC with a seperate port for each workplace
@Start _ckgdoku_QUOTckgdoku> «C:\program files (x86)\iTALC\ica.exe» -ivsport 400%1 -isdport 480%1
