Folder/file list user profile
Posted: 16.06.2020, 11:04
Quite often I need a list of the filenames in a folder to be copy and pasted into another program or for instance an email. I use the folder/file list option to create a txt file with the files in the folder. Then I open the text file in Notepad++ to remove all the unwanted bits to only leave a list of filenames. This works ok but involves a few steps. Recently I stumbled upon an ini file called "FreeCommander.prtf.ini" in the C:\Users\ron\AppData\Local\FreeCommanderXE\Settings folder. This seems to control the folder/file list output. I created a new profile by copying an existing profile and append to the end of the ini file:
[A1B8473C-BA32-44B2-8FBB-0E8D581D6274]
Name=User_Profile (name without ext)
TargetFolderForOutput=
AddHeaderRow=0
AddFieldNamesRow=0
AddSummaryPerFolder=0
AddTotalSummary=0
DividingLineLength=100
DividingLineChar=-
FixedFieldsType=0
FieldsSeparatorChar=TAB
FolderLineFields=[p_full]
FileLineFields=[n]
The profile ID is a copy from the existing profile, but incremented by 1. So the existing ID is A1B8473C-BA32-44B2-8FBB-0E8D581D6273. I also added this ID to the list of profiles in the ini file
[Profiles]
1=9AB1365B-6032-468A-95BB-4543FFA4B23A
2=A1B8473C-BA32-44B2-8FBB-0E8D581D6273
3=A1B8473C-BA32-44B2-8FBB-0E8D581D6274
Now I can directly generate a list of file names without using Notepadd++
Because this seems to work ok I created a 4th profile to list filenames including the extension ([ne] in stead of [n]). Again copying the profile ID and increment by one again. In the profile list drop down box I can now select from 4 profiles, the 2 default and my 2 created profiles. Maybe this is of use to somebody else
I have a few questions which I hope somebody can answer:
[A1B8473C-BA32-44B2-8FBB-0E8D581D6274]
Name=User_Profile (name without ext)
TargetFolderForOutput=
AddHeaderRow=0
AddFieldNamesRow=0
AddSummaryPerFolder=0
AddTotalSummary=0
DividingLineLength=100
DividingLineChar=-
FixedFieldsType=0
FieldsSeparatorChar=TAB
FolderLineFields=[p_full]
FileLineFields=[n]
The profile ID is a copy from the existing profile, but incremented by 1. So the existing ID is A1B8473C-BA32-44B2-8FBB-0E8D581D6273. I also added this ID to the list of profiles in the ini file
[Profiles]
1=9AB1365B-6032-468A-95BB-4543FFA4B23A
2=A1B8473C-BA32-44B2-8FBB-0E8D581D6273
3=A1B8473C-BA32-44B2-8FBB-0E8D581D6274
Now I can directly generate a list of file names without using Notepadd++
Because this seems to work ok I created a 4th profile to list filenames including the extension ([ne] in stead of [n]). Again copying the profile ID and increment by one again. In the profile list drop down box I can now select from 4 profiles, the 2 default and my 2 created profiles. Maybe this is of use to somebody else
I have a few questions which I hope somebody can answer:
- Is it ok to simply increment the existing ID's or does this break something else in FC?
- Is there a list of all FileLineFields identifiers that can be used ([dm],[dc],[attr],[s_bytes],[n],[ne] etc...)?