scripting@wanadoo.nl




DelPrinterConnections()

http://www.scriptlogic.com/kixtart/FunctionLibrary_FunctionList.aspx


actual FunctionLibrary list on 'Scriptlogic' site printer-friendly mirror of UDF topic on 'scripting@wanadoo.nl' site close
24 November 2002 DelPrinterConnections()
AuthorLonkero
Action unmaps connected printers.
SyntaxDelPrinterConnections () 
Parameters 
Remarksnot tested on net use mapped printers 
Returnsnothing 
Dependencieswindows 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 -
 
  original source of UDF topic. show actual FunctionLibrary list on Scriptlogic site close top
          printer-friendly mirror of UDF topic on scripting@wanadoo.nl site  




Copyright © 2003 www.scriptlogic.com & scripting@wanadoo.nl - last updated on 20 May 2003


Site Meter