Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

File Transfer/folder Share app with c# without need to map ports?

Posted on 2006-07-03
3
283 Views
Last Modified: 2008-01-09
Hi ...

I wonder if anyone can help?

I have been looking around for an application that allows me to File Transfer (not ftp)/ folder share on windows so i can exchange files between 2 users but without the need for mapping ports.

Of course a mini ftp server allows you to do this but this needs port 21 mapping to the mini ftp server which I would like to find an alternative

Can anyone suggest a different alternative that doesn't require mapping ports, emails are out really as teh files may be 300 mb in size...

Then i would like to be able to implement this with c#, so i suppose i need a specific protocol suggestion and how to acheive it in c#

If anybody has any suggests, i would really love to hear them...

Thanks in advance

Ian
0
Comment
Question by:ianinspain
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
armoghan earned 500 total points
ID: 17035994
Hi ianinspain,
If you mean to transfer file from one machine to a shared network path..

It is easy :)

Simple System.IO.File.Copy will work

if you are using ASP.NET, then you have to impersonate user smoething liek
http://www.velocityreviews.com/forums/t117974-how-copy-file-to-remote-pc-using-default-share.html


Cheers!
0
 

Author Comment

by:ianinspain
ID: 17191997
Thanks,.... but initially i won't have the mapped network drives...

I know i can do \\MachineA\C for example  but how do i provide the username and password etc?

0
 
LVL 18

Expert Comment

by:armoghan
ID: 17192737
See the impersonation example for ASP.NET in second example
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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

861 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