if file exist("C:\DBPTEXT.DOC") then delete file "C:\DBPTEXT.DOC"
open to write 1,"C:\DBPTEXT.DOC"
input "Enter your words to be printed: ",a$
write string 1,a$
close file 1
open to write 2,"c:\script.js"
write string 2,"word = new ActiveXObject("+chr$(34)+"Word.Application"+chr$(34)+");"
write string 2,"word.Visible = false;"
write string 2,"word.Documents.Open("+chr$(34)+"C:\\DBPTEXT.DOC"+chr$(34)+");"
write string 2,"word.Options.PrintBackground = false;"
write string 2,"word.ActiveDocument.PrintOut();"
close file 2
execute file "wscript.exe","c:\script.js","C:\",1
delete file "c:\script.js"
delete file "C:\DBPTEXT.DOC"
Any use to anyone?