Solved

Uploading of file to server

Posted on 2006-07-05
8
173 Views
Last Modified: 2010-04-23
Hi, i am building a vb.net app and i am required to let the user choose a file on their local drive and upload it to the server which is on the LAN. I was using the file.copy method and copy it to a mapped network drive but the way i am doing it is to...manually map the drive so if i have 100 clients...i will have to map the drive a 100 times? and after mapping the client can just go to my computer and access the drive. are there any better ways of doing this? preferably programmatically. thanks
0
Comment
Question by:jaxrpc
  • 2
  • 2
8 Comments
 
LVL 19

Expert Comment

by:Rimvis
Comment Utility
How to upload a file to a Web server in ASP.NET by using Visual Basic .NET
http://support.microsoft.com/kb/323245/EN-US/

0
 

Author Comment

by:jaxrpc
Comment Utility
sorry i am not using asp.net here. Just vb.net for desktop applications
0
 

Author Comment

by:jaxrpc
Comment Utility
Maybe just to clarify..the server i am talking about is a file server.
0
 
LVL 24

Accepted Solution

by:
Jeff Certain earned 500 total points
Comment Utility
Rather than mapping, try using the full path in code:
\\servername\folder name\file name

You'll proabbly need ot make sure that permissions are correctly set (i.e. there's a shared folder available)
0
 
LVL 24

Expert Comment

by:Jeff Certain
Comment Utility
Bob,

Full points to me on this one.  :)

Jeff
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now