BTW: To get the oldfashioned printer dialogue for that SYS(1500....) stuff, you need to do this once for every user:
RUN "REG add HKCU\Software\Microsoft\Print\UnifiedPrintDialog /v PreferLegacyPrintDialog /t REG_DWORD /f /d 1"
Change that trailing "1" to "0" for restoring the new print dialogue
Instead of that onpopping dos-window, real PROs of course would use that nifty registry class of VFP :=) But that one can't read/write values other than strings, and we need numeric.
Therefore this one would be more modern than a CMD window flashing by:
oWSH = CreateObject("WScript.Shell") oWsh.RegWrite("HKCU\Software\Microsoft\Print\UnifiedPrintDialog\PreferLegacy PrintDialog", 1, "REG_DWORD")
to check for that Value use nResult = oWSH.RegRead("HKCU\Software\Microsoft\Print\UnifiedPrintDialog\PreferLegacyP rintDialog)
wOOdy