The SETCFG command is for setting *non-port* config options. Please use instead the SETPORT command for setting COMx/LPTx (x=1..9) ports. Its syntax is equivalent to the SETCFG command, except that it will change the port options like LPT1 as you mentioned:
SETPORT LPT1="PDFtoPrinter.exe" #LPT1.PDF
Please note that there are only 4 config options (out of 60+ config options) not supported by the SETCFG/SETPORT commands: CONFWARN, COLORS, LOW and XMEM. The COLORS config option can be changed by the separate SETCOLOR command, so in fact there are only 3 config options not supported by the "SET" commands. Hope this helps.
It's my understanding that some commands, such as "LPT1 =", can't be set with SETCFG. So, for example, if in the course of work you wanted to send PCL print jobs to an actual printer instead of the screen, "vdosplus /set "LPT1 = "PDFtoPrinter.exe" #LPT1.PDF" allows you do so without editing the config.txt file or exiting vdos and running the command at launch.
Anyway, that's my rationale for running the "set" command inside an existing vdos session, but it sounds like this use was not what you intended.
You meant that you commanded "vDosPlus /set ..." inside an existing vDosPlus window? I am not quite sure why you want to do this. The "/set" option is for initializing the settings when you launch vDosPlus from Windows, and if vDosPlus is already running you can change the setting of the current vDosPlus session using the SETCFG command (rather than using "vDosPlus /set ..."). Hope this helps.
When the "set" command is executed, another vdos window opens -- and it's in that window where the change initiated by the set command takes effect. So now there are two versions of vdos running.
I assume this is normal behavior(?) Thanks.
May I ask what is the "new vdos(plus?) window" you are referring to? Thanks.
The vdosplus "set" command, for example
Vdosplus /set LPT1 = "PDFtoPrinter.exe" #LPT1.PDF
Vdosplus /set font = consola
leads to a variety of odd xy3 behaviors in the new vdos window which the command opens.
The example in front of me is a simple xy3 macro which loads an HP printer driver. Perform it in the primary vdos window and it works as expected. Invoke it in the window loaded after the "set" command above, and it turns normally displayed black text into white italic text.
Not a pressing matter, but anyone else?