File scanner

Everything else that doesn't fall into one of the other PB categories.
AZJIO
Addict
Addict
Posts: 2152
Joined: Sun May 14, 2017 1:48 am

File scanner

Post by AZJIO »

Last edited by AZJIO on Fri Jul 19, 2024 1:17 am, edited 13 times in total.
AZJIO
Addict
Addict
Posts: 2152
Joined: Sun May 14, 2017 1:48 am

Re: File scanner

Post 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
User avatar
NicTheQuick
Addict
Addict
Posts: 1510
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: File scanner

Post by NicTheQuick »

Does this utility anything better than baobab?
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
AZJIO
Addict
Addict
Posts: 2152
Joined: Sun May 14, 2017 1:48 am

Re: File scanner

Post 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 = ├─
Last edited by AZJIO on Thu Jun 27, 2024 8:35 pm, edited 1 time in total.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: File scanner

Post 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)
ImageThe happiness is a road...
Not a destination
AZJIO
Addict
Addict
Posts: 2152
Joined: Sun May 14, 2017 1:48 am

Re: File scanner

Post 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.
AZJIO
Addict
Addict
Posts: 2152
Joined: Sun May 14, 2017 1:48 am

Re: File scanner

Post by AZJIO »

Added "Sort Switch" menu item and flag2 = 6 to have different behavior when saving.
AZJIO
Addict
Addict
Posts: 2152
Joined: Sun May 14, 2017 1:48 am

Re: File scanner

Post by AZJIO »

Windows: “Show/Hide checkboxes” option added
benubi
Enthusiast
Enthusiast
Posts: 216
Joined: Tue Mar 29, 2005 4:01 pm

Re: File scanner

Post 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.
AZJIO
Addict
Addict
Posts: 2152
Joined: Sun May 14, 2017 1:48 am

Re: File scanner

Post 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.
AZJIO
Addict
Addict
Posts: 2152
Joined: Sun May 14, 2017 1:48 am

Re: File scanner

Post by AZJIO »

Windows: Added "New Scan" menu item.
Post Reply