Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: wntGetCon Error 509 Network Component is Not Started or Invalid
drives = "HIJKLMNOPQRSTUVWXYZ" cnt = StrLen(drives) BoxText("Remove existing maps to APOLLO") for i = 1 to cnt drv = StrSub(drives, i, 1) netsrc = StrUpper( wntGetCon(drv) ) if StrIndex(netsrc, "\\APOLLO\", 1, @FWDSCAN) >= 1 then ; contains APOLLO, delete the connection wntCancelCon(drv:":", @TRUE, @TRUE) BoxText("Deleting the map for %drive% as %netsrc%") timedelay(2) endif next ; i
drives = DiskScan( 4 ) cnt = ItemCount( drives, @TAB ) BoxText( "Remove existing maps" ) for i = 1 to cnt drv = ItemExtract( i, drives, @TAB ) netsrc = StrUpper( wntGetCon( drv ) ) if StrIndex( netsrc, "\\APOLLO\", 1, @FWDSCAN ) >= 1 then ; contains APOLLO, delete the connection wntCancelCon( drv, @TRUE, @TRUE ) BoxText( "Deleting the map for ":drive:" as ":netsrc ) timedelay( 2 ) endif next
Article ID: W18003
Filename: wntGetCon Error 509 Network component is Not Started or Invalid.txt
File Created: 2010:06:30:09:03:06
Last Updated: 2010:06:30:09:03:06