Go Back   FlashFXP Forums > >

General Discussion Need help? Have a problem? Let us help you. Bug reports and feature requests should be made using the Bug Tracker or Feature Tracker

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 06-30-2011, 10:24 AM   #1
cdun2
Junior Member
 
Join Date: Oct 2010
Posts: 24
Default Deleting Multiple Remote Files

I am running FlashFXP version 4.0.0(build 1548), single user license. This is on Windows Server 2008 R2 Enterprise

I have a queue file that downloads a remote directory called DWExport (and whatever files are in it) to a local directory called Refresh. Once the Directory and its files have been downloaded succesfully, I want to delete any files that are in that remote directory. I don't see how to do that without deleting the entire remote directory (using Enqueue on the remote directory).

A sample of one of the file names is; SmartExport_DW2011.06.30.zip. The only thing that changes about the file name is the datestamp. The remote directory is /OurCompany/DWExport/.

If I Enqueue the deletion, is there a way to use a wildcard to delete/move the contents of the remote DWExport directory instead of deleting the entire directory?

Thank you for your help!

cdun2
cdun2 is offline  
Old 06-30-2011, 06:42 PM   #2
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

This requires FlashFXP v4.1 build 1902 or newer.

With the latest beta release this can be done with additional configuration of the queued delete.

Load the queue file, then from within the queue window right-click on the folder to be deleted and select edit. From the edit dialog uncheck Include sub-folders click OK and then save your modified queue file.

When the option include sub-folders is unchecked the folders within will not be deleted and neither will the folder, only the files will be deleted.

Download FlashFXP 4.1 beta



Another new feature in the 4.1 beta is the ability to define file masks for folder delete operations, so you could then enter a file mask of SmartExport_DW*.zip and only the matching files within the folder would be deleted.
bigstar is offline  
Old 08-08-2011, 12:51 PM   #3
computersoftware121
Junior Member
 
Join Date: Aug 2011
Location: USA
Posts: 1
Default

Thanks for pointing that out, although in the actual code it does have the correct number of backslashes. This appears to be an issue directly related to VB trying to delete files using a UNC connection. If I call a batch file it works normally, but I am trying to avoid having to use a batch file so I can deploy this to other sites as well.
computersoftware121 is offline  
Closed Thread

Tags
deleting, directory, files, flashfxp, remote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -5. The time now is 04:52 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)