Hi everyone, i'm working on a simple console application for my company, which would backup the company's X:\ drive by uploading its data every day at 3:00pm.

Questions:
1. Suggestions on how to upload a directory? (if not possible, then is it possible to automatically upload file by file)
2. An online alternative to ftp?

I really appreciate any help. Thank you

You will need to send the files one at a time.
using System.IO;
using System.Net;

Use the Directory.GetFiles() method to find the files you want to send.
Use a WebClient and the .UploadFile() method to send the files to the remote server.

There are other options for uploading, but this one will work in most cases.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.