Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual Basic

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Basic Language Reference
My.Computer.Network Object

Provides a property, event, and methods for interacting with the network to which the computer is connected.

The following table lists examples of tasks involving the My.Computer.Network object.

This example uploads the file Order.txt to http://www.cohowinery.com/uploads.

Visual Basic
My.Computer.Network.UploadFile ( _
"C:\My Documents\Order.txt", _
"http://www.cohowinery.com/uploads.aspx")

Namespace: Microsoft.VisualBasic.Devices

Class: Network

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Continuing Frustration With Microsoft Examples      magnets ... Thomas Lee   |   Edit   |   Show History
For example, your code looks like:

My.Computer.Network.UploadFile ( _
"C:\My Documents\Order.txt", _
"http://www.cohowinery.com/uploads.aspx")


But, the "uploads.aspx" is very specific in how data is received yet you provide no details. In other examples I've seen you specify "upload.aspx" yet still talk about "uploads.aspx".

There are thousands of other examples in the VB world alone where you copy and drop in code only to be frustrated by the example not working.

Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker