1
I have an application that transfers files via socket, but it is very tiring to have to make transfers from one to one. My question is the following:
How can I download a DIRECTORY complete via socket?
The program works as follows, it asks the user to enter the remote directory in which the file is for transfer, EXAMPLE: C: USERS.DAT FILE then it does a validation to confirm the existence of the file, and lastly it transfers the file byte by byte.
The problem is that when the user only passes the directory he fails to validate, an example is if I type C: USERS DIRECTORY the program then returns an error of FAILED IN READ BYTES
The solution would be to zip the directory, but the server only works with command lines "SHELL", and Windows has nothing native for zipping per command line.
Any suggestions?