Ewon TechForum
Providing technical solutions to technical requests

Integration of Basic and Java
DhrutiC Offline
Junior Member

I am building a system which will delete the files created before a certain age. I have seen the FS "rm" option, but it will delete the specified file only.
Is there any option/command available to find the last modified time of a file or files created before a certain age, the way we have "-mtime" option available in Unix commands.

And is there any way I can execute a Basic command/script from my Java Application?


simon Offline
eWON Support

Indeed, there is no way to know the last modified date of a file in BASIC.
However, in JAVA you can do :

java.io.File f = new File("/usr/t2.txt");

To make BASIC and JAVA communicate, there is no function for that. However, you may use a Java form (web server form reserved for java) to send the data to the BASIC using a GETHTTP.
I did that for this addon that was useful when the BASIC function FS did not exist : https://techforum.ewon.biz/thread-120.ht...=list+file


Possibly Related Threads…
  Java 1.4 update Started by tomT
12 Replies - 1.641 Views
24-03-2020, 09:08 PM
Last Post: hernfiry
13-03-2020, 01:12 PM
Last Post: simon
05-03-2020, 02:11 PM
Last Post: simon
03-03-2020, 11:35 PM
Last Post: simon
20-02-2020, 10:33 PM
Last Post: simon
  JAVA Azure IOTHub Connector Started by simon
1 Replies - 942 Views
11-12-2019, 12:19 PM
Last Post: simon
10-12-2019, 05:50 AM
Last Post: Kanduri Shouri
03-12-2019, 04:40 PM
Last Post: simon
  Download Java ETK 1.4.3 Started by woodyjon
2 Replies - 362 Views
14-11-2019, 10:13 AM
Last Post: woodyjon
30-10-2019, 07:52 PM
Last Post: IceControls

Users browsing this thread:
1 Guest(s)

Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy