File scanner
Posted: Thu Apr 01, 2021 6:14 pm
Code: Select all
+ Imagine
| + Cache
| | |---Thumbs.db
+ ImgBurn
| + Log Files
| | |---ImgBurn.log
Code: Select all
[List]
tofile = 1
flag = 2
Depth = │\t
Folder = ├─🖿
; Folder = ├─🖿
; Folder = ├─◢
; Folder = ├─🗁
; Folder = ├─🮦
; https://unicodes.jessetane.com/?search = triangle
File = ├─
I updated several times adding flags: 1, 2, 4, 8. Optimized list export. The tofile = 1 flag allows you to export to a file or clipboard.
That’s right, English is the default, Russian is only enabled if GetUserDefaultUILanguage = 1049. Delete the Lang.txt file. Or add forcelang = 1 to the ini filebenubi wrote: Wed Jul 10, 2024 1:50 pm 1 - English as default language or use Russian only when it's also the system's default language.
Code: Select all
Define UserIntLang
Define ForceLang
CompilerSelect #PB_Compiler_OS
CompilerCase #PB_OS_Windows
Define *Lang
If OpenLibrary(0, "kernel32.dll")
*Lang = GetFunction(0, "GetUserDefaultUILanguage")
If *Lang And CallFunctionFast(*Lang) = 1049 ; ru
UserIntLang = 1
EndIf
CloseLibrary(0)
EndIf
The whole point of the program is to find large folders and files in order to clean the system of forgotten large files. But to use the program for a list of files, you need to choose one of the methods:
It is impossible to know in advance how many files there will be in a folder; their number will be determined after the list is created, and therefore it is impossible to determine the download percentage. You have statistics displayed in the window title: “scanning”, “list building”. You have to understand that if you are trying to get a million files and folders, it will take time. Even if you open the properties of the C:\Windows folder, you don't get the results right away, you see them being calculated until they stop.benubi wrote: Wed Jul 10, 2024 1:50 pm 3 - Perhaps a little progress indicator or window event parsing since I have the "not reacting" while the program works
I'll think about it, maybe I'll use ListSize() and a file listing counter. It seemed to me that for the sake of this little thing I would not want to complicate the algorithm.benubi wrote: Wed Jul 10, 2024 1:50 pm 4 - Text output version: Add Folder_Last & File_Last (or something) in INI file and output, so that the last folder and file have an L instead of a 90° turned "laying" T.
This is not practical functionality. In most cases, you spend a lot of time scanning all drives. You can run each disk in a separate window. You won't have to wait half an hour, you'll get your first disc faster and start browsing it while the other disc is being scanned. I don't plan to do this for now, as it doesn't limit your ability to scan disks.benubi wrote: Wed Jul 10, 2024 1:50 pm 5 - I used "My Computer" but it didn't work to get a full overview of all drives. Perhaps a user would be interested to know how all drives look in one overview.