Go Back   FlashFXP Forums > >

Custom Commands Download, share, or get help creating your own.

Closed Thread
 
Thread Tools Display Modes
Old 04-03-2015, 01:07 AM   #1
Shark
Senior Member
FlashFXP Beta Tester
 
Shark's Avatar
 
Join Date: Oct 2001
Posts: 606
Default Delete local files by date

I tried to post in my original thread; https://oss.azurewebsites.net/forum/flash...iles-date.html

However, for some reason I cannot unlock it, my access must have changed.

Anyway, can this same method be applied to local file browser, so I can delete network files by date?
Shark is offline  
Old 04-03-2015, 04:07 PM   #2
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

Yes, this can work in the local browser as well
bigstar is offline  
Old 04-03-2015, 05:32 PM   #3
Shark
Senior Member
FlashFXP Beta Tester
 
Shark's Avatar
 
Join Date: Oct 2001
Posts: 606
Default

Quote:
Originally Posted by bigstar View Post
Yes, this can work in the local browser as well
I've tried adding the command. Unfortunately it just executes it straight away and doesn't add it to the queue. So there is no way of saving it...

Am I doing it wrong?
Shark is offline  
Old 04-04-2015, 07:27 AM   #4
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

To saw a command sequence to a queue you can do it a couple different ways.

It's best to do this while not connected any remote site since that connection link will be restored when the local command is performed.

Select the local browser file list pane, right-click and then from the popup menu Enqueue > Raw Command




Raw command prompt

And enter the commands.. such as..
Code:
/cd c:\folder\you\want\to\delete\from
/select -f :age+30d
/delete selected



Click the [OK] button and now these 3 lines will appear as a single entry in the queue.





It's best to group the commands like this into a single queue entry.

This way if the /cd operation fails the commands that follow it are not executed.

[UPDATE]
Updated example and images to show a local path c:\folder\you\want\to\delete\from (code was copied from original example that was for a remote server)

If you wanted to test this command out to make sure it works as expected without deleting anything you can add the /stop command after the /delete selected

Code:
/cd c:\folder\you\want\to\delete\from
/select -f :age+30d
/delete selected
/stop

Last edited by bigstar; 04-04-2015 at 07:39 AM.
bigstar is offline  
Old 04-04-2015, 08:08 AM   #5
Shark
Senior Member
FlashFXP Beta Tester
 
Shark's Avatar
 
Join Date: Oct 2001
Posts: 606
Default

Great, it appears the right click method is adding to the queue rather than the menu way which just executes it straight away.

The only question left is will the /cd command work correctly if it is a network share?

Ie.

Code:
cd \\HDD-SERVER\Backup\
/select -f :age+30d
/delete selected
Shark is offline  
Old 04-04-2015, 05:51 PM   #6
Shark
Senior Member
FlashFXP Beta Tester
 
Shark's Avatar
 
Join Date: Oct 2001
Posts: 606
Default

[08:50:40] Command not supported: cd \\HDD-SERVER\Backup\
[08:51:10] Command not supported: cd/ \\HDD-SERVER\Backup\
Shark is offline  
Old 04-04-2015, 07:58 PM   #7
DayCuts
Senior Member
FlashFXP Beta Tester
 
Join Date: Dec 2003
Posts: 421
Default

Did you try "/cd"? Your log lines show only "cd" and "cd/" which are not valid commands.
DayCuts is offline  
Old 04-04-2015, 08:05 PM   #8
Shark
Senior Member
FlashFXP Beta Tester
 
Shark's Avatar
 
Join Date: Oct 2001
Posts: 606
Default

ha... I must be dyslexic. Thanks
Shark is offline  
Old 04-04-2015, 08:06 PM   #9
Shark
Senior Member
FlashFXP Beta Tester
 
Shark's Avatar
 
Join Date: Oct 2001
Posts: 606
Default

The only problem with the right click on the local browser is that I cannot untick "Display results in a edit window"

How can I turn off the pop-up window?
Shark is offline  
Old 04-04-2015, 08:49 PM   #10
DayCuts
Senior Member
FlashFXP Beta Tester
 
Join Date: Dec 2003
Posts: 421
Default

That is odd, I am unable to tick it, but you are unable to untick it?
DayCuts is offline  
Old 04-05-2015, 12:10 AM   #11
Shark
Senior Member
FlashFXP Beta Tester
 
Shark's Avatar
 
Join Date: Oct 2001
Posts: 606
Default

I think that is what I said... I cannot untick it
Shark is offline  
Old 04-05-2015, 07:59 AM   #12
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

There was an odd mistake where the "Display results in edit window" was pulling a default value from some totally unrelated setting.

This update should correct it, ffxp5.1.0.3827.zip


This is just the flashfxp.exe so just unzip it into your FlashFXP program folder.
bigstar is offline  
Old 04-05-2015, 05:27 PM   #13
Shark
Senior Member
FlashFXP Beta Tester
 
Shark's Avatar
 
Join Date: Oct 2001
Posts: 606
Default

Thanks bigstar. That is fixed it for me. Now the box is unticked. However, it cannot be ticked either (which is fine for me) and is greyed out.
Shark is offline  
Old 04-05-2015, 05:48 PM   #14
Shark
Senior Member
FlashFXP Beta Tester
 
Shark's Avatar
 
Join Date: Oct 2001
Posts: 606
Default

Just to complete the thread, I have tried it and it works fine now. Here is what I have done for the command & in Task Scheduler:

- Go to local browser, right-click and then from the popup menu Enqueue > Raw Command. Then press the arrow & enter these lines:

Code:
/cd \\HDD-SERVER\Backup\
/select -f :age+30d
/delete selected
- Right click in queue window & save the queue.

- Load Windows Task Scheduler & create a new basic task. Run FlashFXP as a program and use these arguments:

Code:
-c2 -go deletefiles.fqf
It all appears to be working now. Thanks.
Shark is offline  
Closed Thread

Tags
date, delete, files, local, raw command

Thread Tools
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


All times are GMT -5. The time now is 03:20 PM.

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