Hello everybody,

is this question stupid?

Is it possible to print a .txt File out of VBS? I did not find any method
for that purpose nor a description for such a routine.

Any ideas?

Thanks for reading

Ole

Re: Printing out of VBS? by y

y
Wed May 26 08:42:11 CDT 2004

"Ole Weigelt" <o.weigelt@officeworks.de> wrote in message news:ehGgCUyQEHA.2876@TK2MSFTNGP09.phx.gbl...
> Hello everybody,
>
> is this question stupid?
>
> Is it possible to print a .txt File out of VBS? I did not find any method
> for that purpose nor a description for such a routine.
>
> Any ideas?
>
Use Notepad.exe
This script print out a file droped to icon via notepad.

Set Args=wscript.arguments
Set wShell = CreateObject("Wscript.Shell")
wShell.Run "%windir%\notepad.exe /p " & Args(0), 0
Set wShell = Nothing

Re: Printing out of VBS? by Lee

Lee
Wed May 26 09:08:08 CDT 2004

Ole,
As suggested in another reply, you may use notepad to print text
files; however, if you'd like to do something more eloquent, I'd be
glad to give you a copy of my PrinterObject that works well with
VBScript. It is an ActiveX dll that wrapes up the VB printer object
so that it can be used by any scripting language that supports
ActiveX/OLE.

Lee

On Wed, 26 May 2004 15:16:06 +0200, "Ole Weigelt"
<o.weigelt@officeworks.de> wrote:

>Hello everybody,
>
>is this question stupid?
>
>Is it possible to print a .txt File out of VBS? I did not find any method
>for that purpose nor a description for such a routine.
>
>Any ideas?
>
>Thanks for reading
>
>Ole
>