0

Okay so my problem is that the server (accessed through filezilla) wont allow .exe extensions to be uploaded as a result i have added a .new to the end and that allows it to be uploaded. Thus when i download it i simply remove the .file from the end.

That's sorted but my auto updater needs to download folders as well. This is a problem as i cannot add a .file to a folder as it does not govern the filetype. I though of using .zip files but i cannot find an program in windows that can extract it (e.g. through CMD, or if you right click a .zip file in Win7/Vista you get the option to "extract all" i cannot find the root of this application). Also if i try to use a external file extractor i cannot be sure that the remote PC has the same program (e.g. 7zip, winrar, etc..)

Does anyone know how to help?
Anyone had to do this themselves??
Ty :)

2
Contributors
2
Replies
5
Views
7 Years
Discussion Span
Last Post by GeekByChoiCe
2

3 different ways you have...
1. You could use a third party assembly from http://www.enterprisedt.com/ to get this done
2. Use commandline
3. use the WebRequestMethods.Ftp example here http://msdn.microsoft.com/en-us/library/ms229716.aspx

to option 2...
create a ftp.ftp file via code.
content:

MyUserName
MyPassword
cd /Path/on/server/
binary
prompt n
mget *.*
bye

run CMD
command: FTP -v -s:ftp.ftp 91.121.168.38
remove ftp.ftp file

Votes + Comments
FtpWebRequest is my option!!!
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.