Page 1 of 1

File scanner

Posted: Thu Apr 01, 2021 6:14 pm
by AZJIO

Re: File scanner

Posted: Mon Nov 15, 2021 2:44 pm
by AZJIO
Updated
Added items "Expand all", "Collapse all" for the selected item, "Open ini-file".
Added keyboard shortcuts Shift + Del (delete marked), Del (delete selected), Esc (exit)
Added recycle=1 flag to delete to trash, warning=1 - warn when deleting

Re: File scanner

Posted: Mon Nov 15, 2021 5:03 pm
by NicTheQuick
Does this utility anything better than baobab?

Re: File scanner

Posted: Tue Jun 18, 2024 12:21 am
by AZJIO
Added saving the list in this form:

Code: Select all

+ Imagine
|	+ Cache
|	|	|---Thumbs.db
+ ImgBurn
|	+ Log Files
|	|	|---ImgBurn.log
You can add your own formatting marks to the ini file

Code: Select all

[List]
tofile = 1
flag = 2
Depth = │\t
Folder = ├─🖿 
; Folder = ├─🖿 
; Folder = ├─◢ 
; Folder = ├─🗁
; Folder = ├─🮦
; https://unicodes.jessetane.com/?search = triangle
File = ├─

Re: File scanner

Posted: Thu Jun 27, 2024 7:19 pm
by Kwai chang caine
Hello AZJIO :wink:

I didn't have tested before because, I didn't see your post :oops:
Your last link not works (File empty)
But i have use the first and that works here
Thanks for sharing 8)

Re: File scanner

Posted: Thu Jun 27, 2024 8:31 pm
by AZJIO
Kwai chang caine wrote: Thu Jun 27, 2024 7:19 pm But i have use the first and that works here
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.

flag:
0 - default
1 - indentation less by 1,
2 - without the first line, which indicates the path of the folder being examined
4 - if the list has no folders, then it does not add a prefix to the files.
8 - show size

Since there are few reviews, I did not raise the topic due to minor updates.

Re: File scanner

Posted: Mon Jul 08, 2024 4:34 am
by AZJIO
Added "Sort Switch" menu item and flag2 = 6 to have different behavior when saving.

Re: File scanner

Posted: Tue Jul 09, 2024 6:22 pm
by AZJIO
Windows: “Show/Hide checkboxes” option added

Re: File scanner

Posted: Wed Jul 10, 2024 1:50 pm
by benubi
Here's a few cosmetic & ergonomic improvements I suggest for implementation:

1 - English as default language or use Russian only when it's also the system's default language.

2 - Alphabetical sorting of results

3 - Perhaps a little progress indicator or window event parsing since I have the "not reacting" while the program works

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.

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.

Re: File scanner

Posted: Wed Jul 10, 2024 6:24 pm
by AZJIO
benubi 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.
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 file

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
benubi wrote: Wed Jul 10, 2024 1:50 pm 2 - Alphabetical sorting of results
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:
1. Add sort = 0 to the ini file
2. Click the menu item "Sort Switch" (I don't cache the sort so it takes time to sort all the files)
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
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 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.
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 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.
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.
You use the program by clicking on the executable file. Add it to the context menu, it's much more convenient. But I added it only for folders, not for disks.

Re: File scanner

Posted: Sun Jul 14, 2024 8:39 pm
by AZJIO
Windows: Added "New Scan" menu item.