applicationfor deleting files

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

applicationfor deleting files

#1

Postby HarryDeBoer » Mon Apr 28, 2014 11:48 am

Hi,

I want to make a application where I can select network stations and path/folders. That info I wanna save along with file extensions and number of days. Purpose is to delete alle files older than x days (differs for each folder and extensions).

What would be the best approach to do this in Ebase. (we are now using scheduled batch files with the forfiles commando), but I want to create an UI.
0 x
Kind regards,

Harry

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Apr 28, 2014 12:12 pm

To access the files you can use the FileServices API class (see online documentation) which has many useful methods to list files in folders, read and write files etc. Or you can use the Java classes (probably mainly java.io.File) to access the files directly from a script.
0 x


Who is online

Users browsing this forum: No registered users and 6 guests