Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: DUN Speed connection speed
;--- Author: Mike Smith, smithm@post.queensu.ca gosub InitBps Message("InitBps","Bps = %Bps%") exit ;--- Subroutine InitBps ; What is the speed of the user's dial-up connection? If they are ; currently dialed in the speed is contained in the "Connected at" child ; of the "Connected to" window. On 95A systems, the name of the "Connected at" ; window changes to the name of the connection when it is minimized. Thankfully, ; the Internet extender makes it a snap to know what the possible names are. ; The speed is assigned to Bps. -1 is returned for "Don't know", -2 for ; error loading the Internet extender. :InitBps if AddExtender("wwwsk34I.dll") Bps = -1 ibParents = StrCat("Connected to",@Tab,DunItemize()) for ibi=1 to ItemCount(ibParents,@Tab) ibParent = ItemExtract(ibi,ibParents,@Tab) if WinExist(ibParent) ibChildren = WinItemChild(ibParent) ibPos = StrIndexNc(ibChildren,"Connected at ",1,@FwdScan) if ibPos > 0 ibSpeed = StrReplace(ItemExtract(1,StrSub(ibChildren,ibPos + 13,-1)," "),",","") if IsNumber(ibSpeed) Bps = ibSpeed break endif endif endif next else Bps = -2 endif Drop(ibParents,ibi,ibParent,ibChildren,ibPos,ibSpeed) return ;--- End Subroutine InitBps
Article ID: W13288
Filename: Determine DUN Speed.txt
File Created: 2001:03:01:14:31:14
Last Updated: 2001:03:01:14:31:14