Invoking other Windows programs with X-Win32
X-Win32 can invoke other Windows programs as X-Win32 Sessions via the command connection module in X-Config. The command module allows you to start an arbitrary program on Windows (typically a batch file), passing it the session command variables as environment variables (e.g. DISPLAY, MYIP, DNUM, IPSMART, LOGIN, PASSWORD, and HOST).
Creating a command session
- Open X-Config
- Select the Sessions tab
- Click the Add… button
- Select command from the Connect Method dialog
- Enter the full path to your program or batch file in the Target field
- Enter the working directory in the Start In field
- Save the session
- Invoke the session by clicking the Launch button in X-Config
Screenshot of a new command session
Example batch file (mybatch.bat)
@echo off
set DISPLAY=localhost:%DNUM%
putty -X my_unix_host

Solutions