Old 30th July 2017, 18:43   #1
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 242
Question how can Possible delete File,Files,Directory from FTP

hi
i check many FTP plugin
but not found in that's delete a file or files format (*.txt) and directory
how can Possible delete File,Files,Directory from FTP?
r2du-soft is offline   Reply With Quote
Old 30th July 2017, 23:24   #2
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 242
Question

can remove directory from batch file
but do can do it with nsis?

BatchFile Remove folder AAA From Host
HTML Code:
@echo off
echo FTPUSERNAME> DeleteDirectory.txt
echo FTPPASSWORD>> DeleteDirectory.txt
echo CD AAA>>DeleteDirectory.txt
echo prompt>>DeleteDirectory.txt
echo mdelete *>>DeleteDirectory.txt
echo cd ..>>DeleteDirectory.txt
echo RMdir AAA>>DeleteDirectory.txt
echo disconnect>>DeleteDirectory.txt
echo quit>>DeleteDirectory.txt
ftp -s:DeleteDirectory.txt FTPADDRESS
del DeleteDirectory.txt

OR


HTML Code:
@echo off 
echo open FTPADDRESS> DeleteDirectory2.txt
echo FTPUSERNAME>> DeleteDirectory2.txt
echo FTPPASSWORD>> DeleteDirectory2.txt
echo CD AAA>>DeleteDirectory2.txt
echo prompt>>DeleteDirectory2.txt
echo mdelete *>>DeleteDirectory2.txt
echo cd ..>>DeleteDirectory2.txt
echo RMDIR AAA>>DeleteDirectory2.txt
echo disconnect>>DeleteDirectory2.txt
echo quit>>DeleteDirectory2.txt
ftp -s:DeleteDirectory2.txt
del DeleteDirectory2.txt










i need a way for delete folder [Directory] with nsis
There is a plugin to do this?
r2du-soft is offline   Reply With Quote
Old 5th August 2017, 00:22   #3
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 242
I still did not find a method in nsis
except call to CMD!
1-is not possible upgrade inetc:: Plugin for Create Directory and Delete Directory in FTP?

2-Also is possible About inetc:: errors explain?
When do they happen I encountered some of them But I do not know what time Other items are displayed!



HTML Code:
TEXT("OK")
TEXT("Connecting")
TEXT("Downloading")
TEXT("Cancelled")
TEXT("Connecting"), //TEXT("Opening URL"))
TEXT("Reconnect Pause")
TEXT("Terminated")
TEXT("Dialog Error")
TEXT("Open Internet Error")
TEXT("Open URL Error")
TEXT("Transfer Error")
TEXT("File Open Error")
TEXT("File Write Error")
TEXT("File Read Error")
TEXT("Reget Error")
TEXT("Connection Error")
TEXT("OpenRequest Error")
TEXT("SendRequest Error")
TEXT("URL Parts Error")
TEXT("File Not Found (404)")
TEXT("CreateThread Error")
TEXT("Proxy Error (407)"),
TEXT("Access Forbidden (403)")
TEXT("Not Allowed (405)")
TEXT("Request Error")
TEXT("Server Error")
TEXT("Unauthorized (401)")
TEXT("FtpCreateDir failed (550)")
TEXT("Error FTP path (550)")
TEXT("Not Modified"),
TEXT("Redirection")
r2du-soft is offline   Reply With Quote
Old 27th August 2017, 06:05   #4
systracer
Junior Member
 
Join Date: Apr 2014
Posts: 9
Integrated in OS ftp.exe don't works with passive mode, so is not good idea.
systracer is offline   Reply With Quote
Old 22nd September 2017, 15:49   #5
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 242
Yes,Ftp.exe haven't good access to server for complicated works
I have problem in ftp.exe for remove a directory with subdirectorys
For example i have a directory with name 'Root' and in that is many folders without file
I want to delete directory 'Root' with all subdirectorys
How can do it with nsis or command line?
r2du-soft is offline   Reply With Quote
Old 25th September 2017, 16:48   #6
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,351
A couple of years ago I have used cURL with nsExec to do some advanced FTP stuff
Yathosho is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump