473,386 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

C# copy files from local computer to online server

85 64KB
Dear all

i have a desktop application in which i want to copy files from my local computer to an online server. I have the user name and the password of the server. is there any way like
file.copy(sourcePath,destinationPath) to copy the files where the
destinationPath will be something like "192.168.x.xx/files" ..

any help will be greatly appreciated.
Regards:
Feb 10 '15 #1
2 3575
Joseph Martell
198 Expert 128KB
I think you should look to the System.Net.FtpWebRequest object. MSDN documentation is found here. It includes support for the ftp protocol and should allow you to create directories as well as upload files. The MSDN documentation also includes an example specifically related to uploading a file to an FTP server.
Feb 19 '15 #2
Mudassir
85 64KB
thanks Joseph.!
i did that using System.Net.WebClient object...
Feb 20 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Somedude | last post by:
Hello, I am building a small page to copy files from our server(s) to our users local machines. It's very simple... (below, "f" is a mapped network drive) <?php $source_file =...
9
by: sifar | last post by:
Hi, I am right now learning PHP & want to know if there is a way to send web form data to an Excel sheet located on a network. My windows xp PC doesnot have a copy of Excel. Also i am not...
9
by: Kristijan Marin | last post by:
Hi, Does anyone know how to copy files inside network from mashine one to mashine2 if the mashine2 requires user/pass authentication ?? I need this for Windows platform. Anyone did that ? ...
7
by: giddy | last post by:
hi, i'm making a netowork based app. and if i have the UNC path to a local computer is there a way i can check whether the pc is online/offline?? Gideon
19
by: samoore | last post by:
I am searching here... I am trying to create a Web App that allows me to copy a file from a server to a users local computer. I want the user to press a button and that should cause the file to...
0
by: jhaek19 | last post by:
hi! do you have a code on how to copy files from local computer to remote computer? please help: when I run this code, it gives an error, File not Found or Path not Found... code: FileFrom =...
3
by: =?Utf-8?B?U2Vhbk1hYw==?= | last post by:
How do I programmatically copy files across a network (from a local workstation to another local workstation on the network) using visual basic 2005? In other words, when in explorer and you enter...
4
by: Tom | last post by:
Every week our web guys publish the web site to all of our servers by logging into the server and doing a copy - paiste. We want to elminate the developers from logging into each server and doing...
2
by: Joseph M | last post by:
Hi. I have a web application hosted on a unix server. I need PHP code to enable the client PCs to be able to copy/download few files located on my unix server to the client PC. Please help.
2
nicebasic
by: nicebasic | last post by:
I'm new to PHP. To be honest, I know nothing about PHP. I can only code in ASP Classic. Since my server runs on Linux, it cannot support ASP Classic. That's why I need a piece of code to copy a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.