Does anyone know how to delete all of the files in a folder via the command line? If so, what is the scripting for it?
Thank you
Command Line Delete Files in a Folder
-del /remote folder/file.txt doesnt work or I used this switch not corectly
my syntax:
"c:\Program files\coreftp\coreftp.exe" -site mysiteprofile -del /remote folder/file.txt -s
This syntax copy file "file.txt" to default local directory specified in siteprofile (also last used local directory in CoreFTP GUI I mean)
I mean "-del filespec" is switch for use to delete SOURCE file (from CoreFTP help - command line)
Who know how to delete file(s) in remote dir or correct syntax???
Thanks
[/b]
my syntax:
"c:\Program files\coreftp\coreftp.exe" -site mysiteprofile -del /remote folder/file.txt -s
This syntax copy file "file.txt" to default local directory specified in siteprofile (also last used local directory in CoreFTP GUI I mean)
I mean "-del filespec" is switch for use to delete SOURCE file (from CoreFTP help - command line)
Who know how to delete file(s) in remote dir or correct syntax???
Thanks
[/b]
Delete remote files
This is exmaple:
"c:\Program files\coreftp\coreftp.exe" -site mysiteprofile -del "/remote folder/file.txt" -s
My real syntax is:
"c:\Program files\coreftp\coreftp.exe" -site pucho -del /upd_files/*.nvp -s
but nothing work also with quotation marks
"c:\Program files\coreftp\coreftp.exe" -site pucho -del "/upd_files/*.nvp" -s
"c:\Program files\coreftp\coreftp.exe" -site mysiteprofile -del "/remote folder/file.txt" -s
My real syntax is:
"c:\Program files\coreftp\coreftp.exe" -site pucho -del /upd_files/*.nvp -s
but nothing work also with quotation marks
"c:\Program files\coreftp\coreftp.exe" -site pucho -del "/upd_files/*.nvp" -s
Delete remote files
This is exmaple:
"c:\Program files\coreftp\coreftp.exe" -site mysiteprofile -del "/remote folder/file.txt" -s
My real syntax is:
"c:\Program files\coreftp\coreftp.exe" -site pucho -del /upd_files/*.nvp -s
but nothing work also with quotation marks
"c:\Program files\coreftp\coreftp.exe" -site pucho -del "/upd_files/*.nvp" -s
"c:\Program files\coreftp\coreftp.exe" -site mysiteprofile -del "/remote folder/file.txt" -s
My real syntax is:
"c:\Program files\coreftp\coreftp.exe" -site pucho -del /upd_files/*.nvp -s
but nothing work also with quotation marks
"c:\Program files\coreftp\coreftp.exe" -site pucho -del "/upd_files/*.nvp" -s
Core FTP doesnt exiting correctly only in silent mode. In normal mode (GUI) files are copied corectly. May be this is the problem of uncorrect redrawing of silent mode window.
But:
While I copy files via command line ( "c:\program files\coreftp\coreftp.exe" -ON -site Pucho -u "%1*.txt" -p "/Skuska/") in Core FTP GUI I see this:
227 Entering Passive Mode (X,Y,Z,Q,R,T)
STOR abc.txt
Conect socket #A to X,Y,Z,Q, port R...
150 Opening BINARY mode data connection for abc.txt
226 Transfer complete.
abc.txt - 100 bytes transferred
MDTM 20050520142050 abc.txt
550 20050520142050 abc.txt: No such file or directory
Notification failed
X,Y,Z,Q is IP adresse of FTP
R,T are numbers about FTP (??? Probably)
A is number of socket
R is number of port
20050520142050 is probably date and time stamp of file abc.txt
What is MDTM and why I eliminate this:
550 20050520142050 abc.txt: No such file or directory
Notification failed
Thanks
But:
While I copy files via command line ( "c:\program files\coreftp\coreftp.exe" -ON -site Pucho -u "%1*.txt" -p "/Skuska/") in Core FTP GUI I see this:
227 Entering Passive Mode (X,Y,Z,Q,R,T)
STOR abc.txt
Conect socket #A to X,Y,Z,Q, port R...
150 Opening BINARY mode data connection for abc.txt
226 Transfer complete.
abc.txt - 100 bytes transferred
MDTM 20050520142050 abc.txt
550 20050520142050 abc.txt: No such file or directory
Notification failed
X,Y,Z,Q is IP adresse of FTP
R,T are numbers about FTP (??? Probably)
A is number of socket
R is number of port
20050520142050 is probably date and time stamp of file abc.txt
What is MDTM and why I eliminate this:
550 20050520142050 abc.txt: No such file or directory
Notification failed
Thanks