I have an application that transfers files via socket, however it is very tiring to have to make one-to-one transfers. My question is this:
How can I download a full DIRECTORY via socket?
The program works as follows, it prompts the user to enter the remote directory in which the file is to be downloaded, EXAMPLE: C: \ USERS \ ARCHIVE.DAT then it does a validation to confirm the existence of the file, and lastly it transfers the file byte to byte.
The problem is that when the user only passes the directory it fails validation, an example is if I type C: \ USERS \ DIRECTORY the program then returns a FAILED IN READ BYTES error
The solution would be to zip the directory, however the server only works with " SHELL " command lines, and Windows has nothing native to zip through the command line.
Any suggestions?