Serwer terminali Winflector - alternatywa dla aplikacji Zdalny Pulpit, Citrix XenApp

Forum > Product technical support > Interactive Batch File

Autor: Mark
Data: 2023-10-11 09:18:45

We are attempting to run an interactive batch file on the Winflector Server, which is being accessed remotely using the Winflector Client.

We are using Winflector 4.0.0.1c on MS Windows 10 Pro 22H2 19045.3570  We understand that -consoleoff should not be present in guiapp.cfg for the console window to be reflected.

As the batch file is processed multiple windows pop-up instead of being processed in a single window - are we missing out on something?

Autor: Mark
Data: 2023-10-16 05:17:21

My apologies - should have included screen snapshots to illustrate the issue being faced.

Please refer attached sample batch file - which is processed in a single window when executed directly, but spawns a second window when executed using Winflector Client.

 

Autor: Jacek (staff)
Data: 2023-10-17 14:48:40

Hi Mark,This behavior suggests that each step in your batch file is performed in separate process (such as in "cmd /c command"). In such a case each cmd process may allocate separate concole window.If possible, make your batch executing in single cmd.exe process. This can help.Jacek

Autor: Mark
Data: 2023-10-18 10:50:34

Jacek - the commands are being executed in a single instance (as we simply echo the options avaiable and wait for user response) - this is confirmed by directly running the batch file and checking the Task Manager for the running processes.

Termination is not being forced as can be seen in the "sample" file included in the screen snapshot, and duplicated hereunder.

@ECHO OFF

setlocal enabledelayedexpansion

CLS

ECHO.

ECHO   PLEASE DO NOT CLOSE THIS WINDOW.

ECHO.

ECHO   Please select Brown desktop you wish to connect to

ECHO.

ECHO      A. Option 1          B. Option 2          C. Option 3

ECHO.

ECHO      D. Option 4          E. Option 5          F. Option 6

ECHO.

CHOICE /N /C:ABCDEF /M "   Select "A"~"F" to connect 

ECHO.

EXIT

1


Zaloguj się aby móc pisać na forum.