Solved

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

Posted on 2006-07-03
3
263 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
Comment Utility
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
Comment Utility
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
Comment Utility
See the impersonation example for ASP.NET in second example
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

7 Experts available now in Live!

Get 1:1 Help Now