Selecting and Uploading Multiple Files/Folder
I'm making an app that saves data about the machine to a sub folder. I would like to be able to hit a button and upload all of the data from the current machine to a server.
If the machine is on a domain it saves the data to
\data\domainname\computername
if not it just saves the data collected to \data\computername
I would like to upload the data to an ftp server and keep everything organized. How can I select the entire computername folder and upload everything in it to the server, or create the same folder on the ftp server and upload all of the files.
For domain machines I want to upload domainname\computername
and for non domain machines just the computername folder.
What is the best way to upload this data, while keeping the folder structure so that everything on the server stays organized by domain and computername?