I have an exe file that runs graphics tests on startup, i.e. The application window with multiplayer opens, tests are run and the window closes. If this is done locally, then everything goes fine, but if you run it by connecting via ssh, then the application appears in the task manager, but not in interactive mode, i.e. windows do not open multiplayer is not visible and naturally the tests do not pass. I tried to do the same with the native Paint application or calc.exe:"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Paint.lnk", "C:\windows\system32\calc.exe"
Through the command line locally, everything works, a window opens and a service appears in the task manager, and if you run it by connecting via ssh, then only the service appears.
Run commands for the exe file are sent through jenkins, which is connected via ssh to the windows machine. What needs to be done to be able to run an application interactively on a remote display under windows?
-
Answer # 1
- windows : Cycle in bat-file
- Connection Reset By :: 1 PORT 22 (Windows 10 + PowerShell /Cmd + OpenSSH)
- windows : Generation of a temporary stamp with a leading zero in the discharge of hours
- windows : How do I run a .java program through .bat so that the command line is not displayed?
- windows : Batch file goes into a cycle when command Sort
- windows : Additional Conditions in the BAT file cycle
- windows : Need a script that turns off the Internet at a certain time
- python : How to update the PATH environment variable when executing a BAT file in CMD Windows?
- windows : Bat -file, script
So far I decided to implement it through the task scheduler SCHTASKS, for calculator calc.exe=):
As a result, I received a scheduled task that will be completed in at least 1 minute, at most 2 minutes, but in interactive mode:
This is the time until the task is completed:
After completion task:
If desired, you can add task deletion:
If anyone knows a more elegant solution to the issue, I will be glad to hear and learn from experience. Thank you