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.

Tasks

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

Example

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")
Requirements

Namespace: Microsoft.VisualBasic.Devices

Class: Network

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

See Also

Reference

Tags :


Community Content

Thomas Lee
Continuing Frustration With Microsoft Examples
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.

Tags : contentbug

Page view tracker