B4J Code Snippet Temporary Files - deleteOnExit - stevel05    Mar 7, 2025   (5 reactions) For anyone needing to write and manage temporary files I came across the File deleteOnExit method which deletes the named file when the JVM terminates normally. JavaDoc is here please read it and use with caution. deleteOnExit cannot be removed from the file once set. Public Sub RequestDeleteOnExit(FilePath As String) Dim tFile As JavaObject tFile.InitializeNewInstance("java.io.File",Array(FilePath)) tFile.RunMethod("deleteOnExit",Null) End Sub Usage example... B4A Question Force media scanner on deleted file - lymey    Jan 29, 2013 /album and the image cannot be displayed. But its not very elegant. Log("Delete the original file: " & filepath & filename) File.Delete(filepath, filename) 'try and force...I am writing an app that deletes an image from the Camera directory. That works fine, and my app can re-list the files and the file is no longer present. BUT the problem is that the device....MEDIA_SCANNER_SCAN_FILE", "file://" & File.Combine(filepath, filename)) Dim p As Phone p... B4A Example [B4X] PocketBase - Deleting files - Alexander Stolte    Feb 10, 2025   (6 reactions) / Please read the official documentation about deleting files in pocketbase: https://pocketbase.io/docs/files-handling/#deleting-files There are several ways to delete files with the B4X-Pocketbase SDK. Delete Specific Files from a Record (DeleteFiles) Deletes a specific file or multiple files from a record. Wait For (xPocketbase.Storage.DeleteFiles("dt_Task","77avq8zn44ck37m"... of file names to be deleted. Delete Individual Files from a Multi-File Field With this function... B4A Question File.DirInternal files deleted when uninstall - Scantech    Aug 30, 2019 I save 3 files to File.DirInternal. When i uninstall the app and reinstall it with B4A, 2 of those files are deleted and 1 of them is still present. Why is it behaving this way?
SpeedLimiter.txt is the one not deleted
Sub Service_Create
StateManager.LoadStateTrip
StateManager...
Try
If File.Exists(File.DirInternal, "Trip.txt") = True Then... Wish File.Rename and File.Delete(into trashcan) - MarkusR    Oct 22, 2018 i missing a rename in File.
also delete into windows/linux trashcan.... B4A Question File.Delete not working - bgsoft    Apr 2, 2013 if you want to delete.
I want to delete with File.Delete but it does not work, it does not erase and....Get(0),15%x,15%y)
DoEvents
Sleep(200)
Resultado=File.Delete(Directorio... remove no matter who is in the internal memory, or on the SDCard ExSdCard, not delete.
I tried to..., NombreFiles.Get (0), 15% x 15%)), wait 200 milliseconds, but none of this has worked.
So do not do wrong... Italian File.delete - Fulvio75    Dec 29, 2022 Ciao ho un problema, copio un file da GD nella cartella locale dell'applicazione b4j su PC, fino a ieri lo potevo copiare e cancellare, oggi lo copio e se tento di cancellarlo con file.delete... B4A Code Snippet Delete specific files according to their type from a specific folder simple short code - AlfaizDev    Jun 19, 2022   (2 reactions)
Dim Dir As String=File.DirInternal
For Each n As String In File.ListFiles(Dir)
Log(n)
If n.Contains(".pdf") Then
If File.Exists(Dir,n) Then
File.Delete(Dir,n)
Log("del")
End If
End If
Next... B4J Question Archiver Lib - has a handle to file - can not delete... - Harris    Nov 24, 2022 a handle on it.
Log(" --- file did not pass unzip - delete it if we can: " & currdel... (could not delete it) - no other files (over 1800 of them) could not get processed.
I go to look at data... B4A Question How to write or delete files on external sd with KITKAT - cb56    Feb 7, 2014 Hi, with KITKAT seems that non-system app can't write to external sd card. Using "File.Copy" I get this error: libcore.io.ErrnoException: open failed: EACCES (Permission denied) I noticed for example that the developer of QuickPic (the famous app to view images) in the latest release has solved the problem. Is there any solution with b4a? Thanks... Page: 1   2   3   4   5   6   7   |