|
|
|
| 24 November 2002 | DelPrinterConnections() |
| Author | Lonkero |
| Action | unmaps connected printers. |
| Syntax | DelPrinterConnections () |
| Parameters | |
| Remarks | not tested on net use mapped printers |
| Returns | nothing |
| Dependencies | windows NT/w2k/XP (same as with inbuild PrinterConnection functions) |
| Examples | "unmapping printers..." DelPrinterConnections() ? "Done." |
| Source |
FUNCTION DelPrinterConnections ()
DIM $c, $bk, $conn
$c=0
$bk="HKEY_CURRENT_USER\Printers\Connections"
$conn=EnumKey($bk, $counter)
WHILE @error = 0
$c=$c+1
$conn=DelKey($bk+"\"+$conn)
$conn=EnumKey($bk, $counter)
LOOP
ENDFUNCTION ; - DelPrinterConnections -
|
|
|
|