Archive: ExecShell "print" "text.txt" --> Flicker?


ExecShell "print" "text.txt" = Flicker?
Hello all.

I'm using this command, ExecShell "print" "text.txt" to print a text file that contains some info the user may want. When this command is executed, the default txt file program (notepad or wordpad) opens just for a moment, prints, then closes.

Is there a way to suppress or open minimized the txt program to avoid the flicker. On slow PCs, the txt program stays open for 1-2 seconds. Thanks.


Try:

ExecShell print text.txt "" SW_HIDE

Originally posted by kichik
Try:
ExecShell print text.txt "" SW_HIDE
Thanks for the suggestion Kichik, but I’m still having the text window pop up for just a moment while it prints. Tested in XP, 2k, and 98.

Any other thoughts? Thanks!

Anyone have another idea? Thanks much.


If you want it to always be completely silent, you have to get a program/plug-in that will print it. There are probably tons of examples around the web of printing text files. It shouldn't too hard to compile a silent one of your own.


Good thought, I'll check that out, thanks.