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 04-11-2017, 07:18 AM   #1
colink
Junior Member
FlashFXP Registered User
 
Join Date: Feb 2017
Posts: 3
Default Delete older files - schedule

I have read this thread about using raw commands to delete files >than 30 days
https://www.flashfxp.com/forum/flash...iles-date.html

I have managed to delete current folder and sub folders with following raw command - but this is not what I want
/select -f :age+30d
/delete selected

I want to set a schedule to delete all files older than 30 days in a specific folder
See attachment for my folder structure (details copied below)
Folder structure on my server
/opt/screenvideo1/html/media/upp/ Current folder
folder in window that I want to delete = up-test

Raw command I tries (plus variations of this)
/cd /up-test
/select -f :age+30d
/delete selected

Various attempts all result in [No Such Files]

=====
Query 2
When I get the correct syntax working, how do I save this command and add to a schedule?

=====
Query 3 - I recognise the CD command from DOS, this depends on the parent folder already open.
If I do manage to get the correct syntax for this delete, do I always have to be in the same parent folder when the scheduled event runs or is there a way to use this command so it always finds the correct folder form the root folder I am logged into?

Query 4
How / where do I delete my test RAW commands (see screenshot)
Attached Thumbnails
Delete older files - schedule-delete-old-files-png  
colink is offline  
Old 04-11-2017, 09:52 AM   #2
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

1.
The reason you get the error "no such files" is because in this case you need to use the absolute path when using the /cd macro.

Code:
/cd /opt/screen-video1/html/media/upp/up-test/
/select -f :age+30d
/delete selected
2.
Right-click on the file list and from the popup menu select Enqueue > Raw Command
Now enter your commands.
Now save the queue to a file. From the main menu > Queue > Save As

3.
This is why its important to use the full absolute path with the /cd command.

4.
If you right-click on the raw command text input box there is an option "Clear history".
I believe that the raw command history is not saved on exit, so the next time you start FlashFXP the history should be empty.
bigstar is offline  
Closed Thread

Tags
command, delete, files, folder, raw


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 12:57 AM.

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