Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing From WSH 1

Status
Not open for further replies.

Mighty

Programmer
Feb 22, 2001
1,682
US
Guys,

I am using WSH to run a VBS file at a certain time every day. Severl messages are outputted from the VBS program to a log file. I would like to be able to send that logfile to a printer. Can anyone tell me how I can do this?? Mise Le Meas,

Mighty :)
 
Hello, Mighty.

If not much decoration/format/stylistic is needed on the printout, how about just use the notepad to print it out :

Set wsh = WScript.CreateObject("WScript.Shell")

wsh.Run "%windir%\notepad.exe /p " & thelogfile

regards - tsuji
 
Thanks tsuji,

I don't need it to look snazzy so that works a treat. Mise Le Meas,

Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top