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!

can i do type>prn in vbscript?? 1

Status
Not open for further replies.

infinitelo

Programmer
Mar 7, 2001
319
i have this file that i need to send to the dos prn with the dos font (please dont ask me Y you'll just say im crazy. trust me i am in the "box" right now and im really reaching for a solution
what i want to do is when they press ok, it does
type filename>prn

' Windows Script Host Sample Script
'
' Copyright (C) 1996-1997 Microsoft Corporation
Sub Welcome()
Dim intDoIt

intDoIt = MsgBox(L_Welcome_MsgBox_Message_Text, _
vbOKCancel + vbInformation, _
L_Welcome_MsgBox_Title_Text )
If intDoIt = vbCancel Then
WScript.Quit
End If
End Sub



as my chemistry professor used to tell me
"ignorance is bliss"
 
Set oShell = WScript.CreateObject("WScript.Shell")
oShell.Run "command /C type C:\program.txt>prn"
Jon Hawkins
 
WOW! FAR OUT, COOL THANKS. You are the ultimate computer guru of the universe. Why is it the short simple pieces that are always hard to find.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top