Solved

Uploading of file to server

Posted on 2006-07-05
8
186 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
ID: 17042133
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
ID: 17047547
sorry i am not using asp.net here. Just vb.net for desktop applications
0
 

Author Comment

by:jaxrpc
ID: 17047553
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
ID: 17051700
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
ID: 17208063
Bob,

Full points to me on this one.  :)

Jeff
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Iteration Help (Asp.net VB) 5 35
Data organization issue 7 36
ModalPopup  question 22 37
Visual Basic 6: Code needed for TripleDES Encryption/Decryption 13 31
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 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