Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

using delete command via script in BODS to delte files older than 'x' days

$
0
0

Hi All,

I am using a script in DS to delete/purge files from a DS job server using a command like this:

 

print (exec ( 'cmd' , 'del " '||$GV_path||' *.txt' || ' " ' ));

 

This deletes all the files which exist there with the *.txt extension.

What I really want to do is delete only those files that have a create date of more than "x" days old.

 

Does anyone know how I can parse that in the cmd using Data Serrvices?

 

thanks!!


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>