|
RemovePrinterConnection (WshNetwork オブジェクト)
object.RemovePrinterConnection(name, [force], [profile])
引数
解説
コンピュータ システムの共有ネットワーク プリンタ接続を解除します。 使用例
Set WshNetwork = WScript.CreateObject("WScript.Network")
PrinterPath = "\\Server1\Printer1"
WshNetwork.RemovePrinterConnection PrinterPath, true, true
関連項目
ComputerName|UserDomain|UserName|AddWindowsPrinterConnection|AddPrinterConnection|EnumNetworkDrives|EnumPrinterConnection|MapNetworkDrive| |
WSHリファレンス
FileSystemObject オブジェクト Drive オブジェクト Folder オブジェクト File オブジェクト Drives コレクション Folders コレクション Files コレクション |