Archive: Using Execshell in silent mode


Using Execshell in silent mode
Is there any way to use command ExecShell "print" in silent mode.

i tried SW_HIDE and /SILENT options, but it opens the file and then prints it.


There was no need to start another topic. If the program (Word Pad) does not allow users to print without viewing the doc itself then you'll have to find another way to print RTF files.

Stu


for what it's worth - wordpad does, with the /p switch. That still flashes up a dialog, though - but it does go straight to printing to the default printer (no printer choice dialog, I'm afraid).


ExecWait 'write.exe /p "c:\folder\file.rtf"'