Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to use the My object to upload and download file?

Posted on 2006-11-21
2
Medium Priority
?
234 Views
Last Modified: 2011-10-03
Can you provide an example where the My object is use to download and upload a file?
0
Comment
Question by:zachvaldez
2 Comments
 
LVL 10

Accepted Solution

by:
gangwisch earned 600 total points
ID: 17991943
To Upload File:
My.Computer.Network.UploadFile("c:\File.txt", "http://www.someserver.com/upload.aspx")


To Download File:
my.Computer.Network.DownloadFile("http://www.someserver.com/myfile.aspx","c:\myfile.txt")
0
 
LVL 15

Assisted Solution

by:Solar_Flare
Solar_Flare earned 400 total points
ID: 17991958
I'm not sure what you are asking.

you want to download a file?

you can use webclient class to download files easily.

dim wc as new net.webclient
wc.DownloadFile("www.someurl.com", "c:\filename.fil")
wc.uploadfile(..., ...)
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question