I am using asp and vb to grab some files across from a web <BR>server .<BR>I am using PWS & my webserver&#039;s home directory is set <BR>to c:/MasterFolder & i have put a file called name.txt<BR>in this folder.<BR>i want to put the name.txt into my c drive.<BR>but the Internet Transfer Control State Change<BR>action does not fire ... is it my code .. or is it PWS<BR><BR>.......... my code<BR><BR>sub get<BR><BR>Open "c:
ame.txt" For Binary Access Write As #1<BR><BR> With Inet1<BR> .URL = "http://localhost/"<BR> .Document = "name.txt "<BR> .Execute , "GET"<BR> <BR> End With<BR><BR>end sub<BR><BR>Private Sub Inet1_StateChanged(ByVal state As Integer)<BR>On Error GoTo ErrorHandler<BR> Dim vtData() As Byte<BR> <BR> <BR> Select Case state<BR> <BR> &#039; Other cases not shown<BR> Case icResponseCompleted<BR> vtData() = Inet1.GetChunk(1024, icByteArray)<BR> <BR> Do While UBound(vtData) &#062; 0<BR> <BR> Put #1, , vtData()<BR> vtData() = Inet1.GetChunk(1024, icByteArray)<BR> Loop<BR> <BR> Close #1<BR> End<BR> <BR> Case icError &#039; 11<BR> <BR> &#039; set the error flag<BR> m_vErrorInStateChange = True<BR> <BR> &#039; Get the Text of the error.<BR> strMess = "ErrorCode: " & Inet1.ResponseCode & _<BR> " : " & Inet1.ResponseInfo<BR> <BR> MsgBox (strMess)<BR> End<BR> Exit Sub<BR> <BR> End Select<BR> <BR> Exit Sub<BR>ErrorHandler:<BR>End Sub<BR><BR><BR><BR><BR>