asif
07-09-2005, 10:56 PM
I'm supporting a schol where I'm using a VB script to connect network
printers so that printers are available to any user logs in.
I have placed this script in the all user startup. When this VB script runs
it pops up a confirmation message "Open File - Security Warning" - 'Do you
want to open this file'
Can I stop this message asking to confirm the execution of the script.
The script is as follows:
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\tech\HPLaser"
WshNetwork.SetDefaultPrinter "\\tech\HPLaser"
printers so that printers are available to any user logs in.
I have placed this script in the all user startup. When this VB script runs
it pops up a confirmation message "Open File - Security Warning" - 'Do you
want to open this file'
Can I stop this message asking to confirm the execution of the script.
The script is as follows:
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\tech\HPLaser"
WshNetwork.SetDefaultPrinter "\\tech\HPLaser"