As topic,
Is it possible to delete local files with ScriptFTP commands or with Exec?
Is it possible to delete local files with ScriptFTP commands or with Exec?
Yes, it is possible. Try this:
[scriptftp="how_to_delete_local_files_with_exec"]# Delete a file in the current local directory
EXEC("del /f /q test.txt")
# Delete a file using an absolute path
EXEC("del /f /q C:\path\to\test.txt")
# Delete a file given a variable with its name
$file="thefiletobedeleted.txt"
EXEC("del /f /q ".$file)[/ScriptFTP]
Further details on the EXEC command here:
http://www.scriptftp.com/reference.php?go=topic260
[scriptftp="how_to_delete_local_files_with_exec"]# Delete a file in the current local directory
EXEC("del /f /q test.txt")
# Delete a file using an absolute path
EXEC("del /f /q C:\path\to\test.txt")
# Delete a file given a variable with its name
$file="thefiletobedeleted.txt"
EXEC("del /f /q ".$file)[/ScriptFTP]
Further details on the EXEC command here:
http://www.scriptftp.com/reference.php?go=topic260
liked Script FTP? Try our other product Email Parser