RE: Display driver mapping progress by jefrie
jefrie
Thu Jan 26 04:27:07 CST 2006
*duh*, forgot the err.clear after every err.X use ...
--
Jens Frieben (Germany)
"jefrie" wrote:
> Maybe this will help:
>
> strInfo = ""
> Set objNetwork = WScript.CreateObject("WScript.Network")
> On Error Resume Next
> 'Map drive 1
> strDrive = "t:"
> strShare = "\\127.0.0.1\C$"
> objNetwork.MapNetworkDrive strDrive,strShare
> If(Err.number<>0) Then
> strInfo = strInfo & "Mapping " & strDrive & " to " & strShare & " failed: "
> & Err.Description & vbCrLf
> Else
> strInfo = strInfo & "Mapping succeeded " & vbCrLf
> End If
> WScript.Echo strInfo
>
> --
> Jens Frieben (Germany)
>
>
> "TJCooper1972" wrote:
>
> > What method do you suggest in order to display the drive mapping status. For
> > example, display: drive, share, success or failure. I dont want a box for
> > each maping but a single window with updating status.
> >
> >