????? ??????? ?????? My.Computer.Network ??? ????? ????? ????? ?? Visual Basic 2005

?????? ????????? ?????? ?????????
???? ???????: 914355 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ?????? ??? ????? ??????? ?????? My.Computer.Network ????????? ?????? ?? ??? ????? ????? ??????? ??? ???? ????? ?? Microsoft Visual Basic 2005. ????? ??? ??????? ??? ????? ????? "?" ????? ????????? ???????? ???? ???? ????? ??????? ?????? My.Computer.Network ?? ??? ??? ??????.

????? ???

???? ??? ??????? ????? ??????? ?????? My.Computer.Network ????? ?????? ??????? ??? ???? ????? ?? Visual Basic 2005. ???????? ??? ?????? ????? ??? ??????? ?? ??????? ???? ??? ???? ???? ????? ?????. ???????? ??? ???? ????? ??? ??????? ?? ???? ???? ?? ??? ??? ??????? ????. ?????? ????? ?????? ????? ??????? ?? ????? Visual Basic 2005:
  • My.Computer.Network.DownloadFile
  • My.Computer.Network.UploadFile
???? ????? My.Computer.Network.UploadFile ????? ?????? ?? ????????? ?????? ??? ????? ???? ???? ????. ????? My.Computer.Network.DownloadFile ???? ?????? ????? ?????? ?????? ????? ?? ??? ????? ?? ?????? ?????? ??? ????????? ??????.

??????? ????

"??????? ??????? ?? ?????" ? "????? ???????? ???????? ???? ????? ??????? ?????? My.Computer.Network ??? ????? ????? ????? ?? Visual Basic 2005. ?????? ??? ???? ?? ????????? ??? ??? ????? ??? ????????? ??? ??????????? ???? ?? ???? ??? ??? ?????? ??????? ???? ??? "???????".

?????? ??? ????? ??? ??????? ???? ?? ????? ?????? ???????:
  • ???? ????? ????????? ?????? ??? ???? ???? ????? ?????.
  • ???? ?????? ???????.
  • ???? ?????? ??????? ??????.
?? ????? ????? ???? ????? ??? ???? ????? ??? ????????? ??????. ??? ?????? ????? ?????? ??????? ??????? ???? ???? ????? ?????.

?????? ??????? My.Computer.Network.DownloadFile ????? ???

???? ??? ?????? ???? ????? ??? ????? ????? ??? ?? ???? ???? ????? ????? ?? ?? ???? ????? ??? ??????? ???? ???????? ????? My.Computer.Network.DownloadFile. ?????? ????? ???? ??????? ???????:
  1. ??? ????? Microsoft Visual Studio 2005.
  2. ?? ??????? ???? ???? ??? ????? ????.
  3. ??? ????? Project ? ???? ??? Visual Basic. ??? ????? ? ???? ??? ????? Windows ?? ???? ??? ?????. ?????????? ??? ????? ????? ?????? Form1.
  4. ????? ???? ???? ?? ??? ????? Form1.
  5. ?? ????? ????? "?????" ??????? Form1 ? ???? ????? ??????? ??? ???? ?????? Button1. ???? ???? ????????? ????????.
  6. ????? ???? ???????? ???????? ??????? ??? ????? ??????? Button1_Click. ??????? <HostPath> ?? ??????? ???? ???? ??????? ?? ????? ??????. ??? ???? ??????? ???? \\Server\test.txt. ??????? <LocalPath> ?? ?????? ??? ?????? ?????? ???? ???? ??? ????? ???? ?? ??????. ??? ???? ??????? ???? C:\Download\test.txt.

    ?????? ??? ??? ?????? ???? ????? ??? ????? ??? ????????? ?????? ??? ????? ?????? ????????.
    Try
        My.Computer.Network.DownloadFile("<HostPath>", "<LocalPath>")
        MessageBox.Show("File downloaded.")
    Catch ex As Exception
        MessageBox.Show("Access failed" & vbCrLf & ex.Message)
    End Try
    
  7. ?? ??????? ????? ? ???? ??? ????? Project.

    ?????????? Project ??? ???????.
  8. ?? ??????? "?????" ? ???? ??? ??? ???????.
  9. ?? Form1 ???? ??? Button1 ?????? ?????.

?????? ??????? My.Computer.Network.UploadFile ????? ???

???? ??? ?????? ???? ????? ??? ????? ????? ??? ?? ??????? ???? ??? ???? ???? ????? ????? ?????? ??????? ??????? My.Computer.Network.UploadFile. ?????? ????? ???? ??????? ???????:
  1. ??? ????? Visual Studio 2005.
  2. ?? ??????? ???? ???? ??? ????? ????.
  3. ??? ????? Project ? ???? ??? Visual Basic. ??? ????? ? ???? ??? ????? Windows ?? ???? ??? ?????. ?????????? ??? ????? ????? ?????? Form1.
  4. ????? ???? ???? ?? ??? ????? Form1.
  5. ?? ????? ????? "?????" ??????? Form1 ? ???? ????? ??????? ??? ???? ?????? Button1. ???? ???? ????????? ????????.
  6. ????? ???? ???????? ???????? ??????? ??? ????? ??????? Button1_Click. ??????? <LocalPath> ?? ????? ???? ???? ?? ????? ???????. ??? ???? ??????? ???? C:\Upload\test.txt. ??????? <LocalPath> ?? ???? ?????? ?????? ???? ???? ??? ????? ???? ?? ??????. ??? ???? ??????? ???? \\Server\test.txt.

    ?????? ?? ???? ????? ??? ?? ????????? ?????? ?? ??? ??? ??? ????? ??? ????????? ?????? ?? ??? ??????? ??? ????? ??????.
    Try
        My.Computer.Network.UploadFile("<LocalPath>", "<HostPath>")
        MessageBox.Show("File uploaded.")
    Catch ex As Exception
        MessageBox.Show("Access failed" & vbCrLf & ex.Message)
    End Try
    
    
  7. ?? ??????? ????? ? ???? ??? ????? Project.

    ?????????? Project ??? ???????.
  8. ?? ??????? "?????" ? ???? ??? ??? ???????.
  9. ?? Form1 ???? ??? Button1 ?????? ?????.

?????

????? ?? ????????? ??? ???? My.Computer.Network ?????? ???? ????? Microsoft ??????? (MSDN) ???? ???:
http://msdn2.microsoft.com/en-us/library/182d4ety(vs.80).aspx
????? ?? ????????? ??? ????? My.Computer.Network.DownloadFile ?????? ???? ????? Microsoft ??????? (MSDN) ???? ???:
http://msdn2.microsoft.com/en-us/library/1say4ws7(VS.80).aspx
????? ?? ????????? ??? ????? My.Computer.Network.UploadFile ?????? ???? ????? Microsoft ??????? (MSDN) ???? ???:
http://msdn2.microsoft.com/en-us/library/w3kksch7(VS.80).aspx

???????

???? ???????: 914355 - ????? ??? ??????: 15/?? ??????/1427 - ??????: 1.4
????? ???
  • Microsoft Visual Basic 2005
????? ??????: 
kbmt kbwindowsforms kbhowto kbinfo KB914355 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????914355

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com