Skip to content
⌘ NSIS Forum Archive

Using Execshell in silent mode

3 posts

axysharma#

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.
Afrow UK#
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
Animaether#
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"'