Solved

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

Posted on 2006-07-03
3
300 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
[X]
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
  • 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

630 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