Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
mlin
Contributor II
Contributor II

Delete local file dynamically

I have a batch file to retrieve files from an FTP site and download to my local directory each day. I need to write something to delete any files in my local directory that are not the latest file. 

The file names are sequential, but are not date related.

i.g. file123, file124, file125, ...

I want to delete file123, file124. 

Anyone have any ideas? In QS or batch.

0 Replies