Folder List built with a script

Suggestions and feature requests.
Post Reply
Message
Author
Mr-Fly
Posts: 187
Joined: 13.10.2007, 22:55

Folder List built with a script

#1 Post by Mr-Fly » 08.12.2023, 18:00

It would be great to have an Dynamic Folderlist, which will be produced eg. by a powershell script.
I have seen some form of feature like this in Royal TS where a serverlist is produced eg. by a powershell script.
Defintion would be something like, the script has to return a JSON formatted list with maybe 2 elements:
- Name that should be shown
- Path
This could be integrated into the Favorites Tree or as a seperate feature.
Usecases:
- Query specific AD OU and create foldernames to the service inside the OU (eg. fileservers).
- Query a network share for a specific string and include the output in a list.
- search a full tree for specific folders and include them
- .....
Using FC under: Win10 German (2004+), Server 2016, Server 2019 + Onedrive

horst.epp
Posts: 456
Joined: 15.11.2008, 20:18

Re: Folder List built with a script

#2 Post by horst.epp » 08.12.2023, 19:04

FC has the File Container function.
You can generate a file list and show them in FC, like I do for Everything search results.

Code: Select all

chcp 65001
set file=C:\Tools\FreeCommander\Settings\FileContainers\Everything.fcc
echo #FreeCommander file cart>"%file%"
C:\Tools\Everything\es.exe %* >>"%file%"
C:\Tools\FreeCommander\FreeCommander.exe /c "%file%"
Windows 11 Home x64 Version 23H2 (OS Build 22631.3155)
Everything Version 1.5.0.1367a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.67
FreeCommander XE 2024 Build 904 64-bit donor

User avatar
Dreamer
Site Admin
Posts: 6088
Joined: 19.08.2007, 23:40

Re: Folder List built with a script

#3 Post by Dreamer » 08.12.2023, 20:13

I agree, file containers are very useful, it's possible to copy any files and folders there also within the program.

More here:

https://freecommander.com/fchelpxe/en/F ... ainer.html

Mr-Fly
Posts: 187
Joined: 13.10.2007, 22:55

Re: Folder List built with a script

#4 Post by Mr-Fly » 10.12.2023, 20:50

Is there any documentation about the .fcc File format?
I made one of the FCC and Folder lines start with *F*C:\.....
What is the difference, when this is set in front of the path?
If I remove it, it will still be a folder and I do not see any difference in behaviour?

For automatic production of this file, it should be in the right format.
Using FC under: Win10 German (2004+), Server 2016, Server 2019 + Onedrive

Marek
Author
Author
Posts: 3951
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Folder List built with a script

#5 Post by Marek » 10.12.2023, 22:10

The *.fcc file start with line:

Code: Select all

#FreeCommander file cart
Files or folders are displayed in further lines.
For the files full path of the file is necessary:

Code: Select all

D:\Temp\dbTest.sql
For the folders Full path of the folder with the prefix "*F*":

Code: Select all

*F*D:\Temp\wordpress

Mr-Fly
Posts: 187
Joined: 13.10.2007, 22:55

Re: Folder List built with a script

#6 Post by Mr-Fly » 11.12.2023, 08:11

Hi,

Just found out, that the feature is only working with local folders?
What I wanted to do is:
Automatically add a list of fileserver with its shares:
eg:
\\server1\share1
\\server2\share2
And bascally the source could be anything like AD-OU with fileservers etc.

Additionally file containers are nice, but you cannot give them names. so if you have two picture folders (eg. your own one in the profile and the public one) you have two entries with the same name.
Using FC under: Win10 German (2004+), Server 2016, Server 2019 + Onedrive

horst.epp
Posts: 456
Joined: 15.11.2008, 20:18

Re: Folder List built with a script

#7 Post by horst.epp » 11.12.2023, 08:53

Mr-Fly wrote: 11.12.2023, 08:11 ...
Additionally file containers are nice, but you cannot give them names. so if you have two picture folders (eg. your own one in the profile and the public one) you have two entries with the same name.
That's wrong, you can have as many file containers as you want.
Each has its own name, of course.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3155)
Everything Version 1.5.0.1367a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.67
FreeCommander XE 2024 Build 904 64-bit donor

Mr-Fly
Posts: 187
Joined: 13.10.2007, 22:55

Re: Folder List built with a script

#8 Post by Mr-Fly » 11.12.2023, 09:04

I meant two folders in the SAME container.
I know that I can have thousands of file containers.
Using FC under: Win10 German (2004+), Server 2016, Server 2019 + Onedrive

horst.epp
Posts: 456
Joined: 15.11.2008, 20:18

Re: Folder List built with a script

#9 Post by horst.epp » 11.12.2023, 09:09

Mr-Fly wrote: 11.12.2023, 09:04 I meant two folders in the SAME container.
I know that I can have thousands of file containers.
For me, all entries in a file container are full paths, as created by my script.
So there can never be a duplicate.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3155)
Everything Version 1.5.0.1367a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.67
FreeCommander XE 2024 Build 904 64-bit donor

Mr-Fly
Posts: 187
Joined: 13.10.2007, 22:55

Re: Folder List built with a script

#10 Post by Mr-Fly » 11.12.2023, 09:25

If you have two full pathes:
c:\users\mayusername\pictures
C:\Users\Public\Pictures
Doesnt it look like this for you?
2023-12-11 09_24_38-C__Tools_FreeCommanderXE64_SETTINGS_FileContainers_TmpFileContainer-1.fcc - Free.png
2023-12-11 09_24_38-C__Tools_FreeCommanderXE64_SETTINGS_FileContainers_TmpFileContainer-1.fcc - Free.png (8.46 KiB) Viewed 15391 times
Using FC under: Win10 German (2004+), Server 2016, Server 2019 + Onedrive

horst.epp
Posts: 456
Joined: 15.11.2008, 20:18

Re: Folder List built with a script

#11 Post by horst.epp » 11.12.2023, 09:43

You make the error to not showing the path in your FC display.
I use the Search columns profile for the container view.

That's the result shown for searching all folders with the name pictures.
Screenshot - 11.12.2023 , 09_39_26.png
Screenshot - 11.12.2023 , 09_39_26.png (20.64 KiB) Viewed 15389 times
The path is displayed, so it's clear what every name means.

The file container content is

Code: Select all

#FreeCommander file cart
C:\Program Files\Logitech\SetPointP\BTWizard\Pictures
C:\Users\Admin\Pictures
C:\Users\Default\Pictures
C:\Users\horst\Pictures
C:\Users\horst\AppData\Roaming\MyPhoneExplorer\samsung SM-G991B [99DA8397-7528-477B-A944-7A0709561D47]\ThumbnailCache\sdcard\Pictures
C:\Users\Monika\Pictures
C:\Users\Public\Pictures
C:\Windows\ServiceProfiles\LocalService\Pictures
C:\Windows\ServiceProfiles\NetworkService\Pictures
Windows 11 Home x64 Version 23H2 (OS Build 22631.3155)
Everything Version 1.5.0.1367a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.67
FreeCommander XE 2024 Build 904 64-bit donor

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest