I am tring to use the upload adn delete script however my filemanes that I want to delete have spaces in teh filname and it wont delete them. I'm assuming the $item dosent list files with spaces in teh name how do I fix this?
FTP Script
- # Change Directory to FTP
- # Change working directory to C:\AdvPubSafety\FTP Queue\Citation\
- # Retrieve the file listing
- # If GETLIST failed stop the script
- # For each file in $list...
- # Upload the file
- # If the file has been succesfully uploaded
- # delete the local copy of the file
You have to enclose between double quotes the file name within the EXEC command. For example:
Well, it is a bit tricky because you have to use two single quote (') to enclose a text string that has double quotes ("). You can find a detailed explanation of this in the EXEC help topic:
http://www.scriptftp.com/reference.php?go=topic260
(see the remarks section)
FTP Script
http://www.scriptftp.com/reference.php?go=topic260
(see the remarks section)
liked Script FTP? Try our other product Email Parser