; Examples of external commands for Windows
; See also the (STARTAPP) AutoLISP function for an alternative method.
EXPLORER, START EXPLORER, 1,,
NOTEPAD, START NOTEPAD, 1,*File to edit: ,
PBRUSH, START PBRUSH, 1,,
in the original code, it appears that a quote was omitted. . . Or am I wrong ?
(DOS_SHELLEXE "AcroRd32.exe" (strcat "/N /T \"" FilNam "\" YourPrinterName") 0 3)
(DOS_SHELLEXE "AcroRd32.exe" (strcat "/N /T \"" FilNam "\"" YourPrinterName") 0 3)
ok
I will try to do something with PDFtoPrinter
Thank you
FileSystemObject only handles files and folder operations. The Shell object is what runs other programs. But to use Shell, the desired program has to accept command line arguments. Dan seems to think that Adobe Acrobat no longer does. If you find a pdf program that has a COM api available then you can code it. Maybe not with lisp though. Lisp vlx commands are written to work with AutoCAD's COM api, but I'm not aware that it can attach to another exe's COM api.ok
I will try to do something with PDFtoPrinter
Thank you
But I still hope that there may be a solution only with VLISP . . .
. . . maybe using FileSystemObject . . .
/N /T "C:\temp\folder with spaces\testplot.pdf" EpsonPrinter
AcroRd32.exe /t path “printername” “drivername” “portname” — Start Acrobat Reader and print a file while suppressing the Print dialog box. The path must be fully specified.
The four parameters of the /t option evaluate to path , printername , drivername , and portname (all strings).
/n Start a separate instance of Acrobat or Acrobat Reader, even if one is currently open.
wmic path Win32_Printer get /value >zda1.txt