Safe For Scripting
Hi,
I have this VBscript which allows you to add a network printer. However because it calls an activeX object it errors out. Can I mark it Safe For Scripting? Here is the script:
<package>
<job id = "jobvbs">
<script language ="VBScript">
Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\TSCL02919\CL-Customer Services"
WshNetwork.AddWindowsPrinterConnection PrinterPath
MsgBox("Customer Services Printer Added!")
history.back(1)
</script>
</job>
</package>
Cheers
interrupt
__________________
\'sync\' <cr>
The name specified is not recognized as an internal or external command, operable program or batch file.
|