I currently have a text file that contains the folder structure of four different folders. I use the "Export folder listing" feature to create the listing and then paste it to the text file. Before the actual listing I write the total size of the root folder.
The files in those folders change frequently and I have to update this text file every few days.
Is it possible to create a button that exports the folder listing of all four folders to that file automatically and adds a short header with the total folder size before each listing?
You can automate things slightly using the Print FOLDER command:
Print FOLDER "C:\Folder\Path" AS=csv TO "C:\Listing\Path\List.csv" QUIET
(You can use different arguments to change the output type or specify a folder format for different columns, etc.)
The best way to include all four folders depends on how the folders are arranged.
If they are all below a common place then you can use a single command to output a listing for the common parent folder, along with a filter to exclude any other unwanted folders.
If they aren't, then it gets a bit more complicated and might require two separate buttons (one to generate all the listings, another to join them all together after the first stage is done). (We might be able to make that easier in a future version, so it could all be done in a single click even in this case.)
I tried to make a button that creates a separate file for each folder.
Print FOLDER "G:\Folder1" AS=txt CALCSIZES=yes ENCODING=utf8 FLATVIEW=grouped HEADER=none FORMAT="Dateiname und Größe" TO "C:\Target\file1.txt" QUIET
Print FOLDER "F:\Folder2" AS=txt CALCSIZES=yes ENCODING=utf8 FLATVIEW=grouped HEADER=none FORMAT="Dateiname und Größe" TO "C:\Target\file2.txt" QUIET
Print FOLDER "D:\Folder3" AS=txt CALCSIZES=yes ENCODING=utf8 FLATVIEW=grouped HEADER=none FORMAT="Dateiname und Größe" TO "C:\Target\file3.txt" QUIET
Print FOLDER "D:\Folder4" AS=txt CALCSIZES=yes ENCODING=utf8 FLATVIEW=grouped HEADER=none FORMAT="Dateiname und Größe" TO "C:\Target\file4.txt" QUIET
However, this creates the first file only. Do I need to separate the instructions somehow? I tried semicolons but this wouldn't work either.
The specified format contains a filter to exclude some folders. This works when browsing folders with Opus but the filter is ignored when I use it to print the folder. I want to exclude all folders named "AUDIO_TS" or "VIDEO_TS". I tried to use the FILTER Argument "~(AUDIO_TS|VIDEO_TS)" but this didn't work.
I create a filter called "Test" and then add FILTER Test to the Print command. I also tried FILTER=Test and FILTER "Test". But the filter is always ignored.
The strange thing is that its actually working if I use the printing dialog and choose my filter there.