Page 1 of 1

Command to save columns, paths, and header to file

Posted: 2021-11-15, 15:06 UTC
by Ralph
I would like a command to save all columns to a file, with full paths and header.
This could be like
cm_SaveHdrDetailsToFile (Save all shown columns to file, with headers)
plus the full path aspect of
cm_CopyHdrFpFileDetailsToClip (Copy all columns, with headers+full path)

Thanks

Ralph

Re: Command to save columns, paths, and header to file

Posted: 2021-11-21, 21:53 UTC
by Ralph
I now use the steps below to list various file properties:
Search > Feed to Listbox >
Custom Columns using the ShellDetails plugin >
Select all folders and files >
Mark > Copy To Clipboard With Path + Details >
paste into a file > save the file
.

The whole process takes 4-5 hours, in part because it involves hundreds of thousands of files on a LAN drive in the cloud. TC spends the majority of that time on completing the Copy To Clipboard With Path + Details step. During that time, it appears that I shouldn't use the clipboard for other purposes. If I make any mistake, I have to start over.

If the Mark > Copy To Clipboard With Path + Details > paste into a file > save the file steps could be combined into an internal command or a Mark command, I could avoid mistakes and save time. In addition, I might be able to use the Lister to check the file being created.

Thanks

Re: Command to save columns, paths, and header to file

Posted: 2021-11-21, 22:21 UTC
by petermad
2Ralph

You can copy filenames + columns directly to a file with the command SAVEDETAILS.

If will not copy the file names with path, but you could make an extra column with the path.

This button could do it:

Code: Select all

TOTALCMD#BAR#DATA
SAVEDETAILS
"%PSELECTEDFILES.txt"
wcmicons.dll,62
Save file names + all columns in the file SELECTEDFILES.txt


-1
To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".
I don't know if it is faster than copying to Clipboard, but the Clipbord is not occupied then.

Re: Command to save columns, paths, and header to file

Posted: 2021-11-22, 09:16 UTC
by Ralph
2petermad

I did a test, and your method worked. I had been thinking that the path should precede and be joined to the filename. In fact, I can treat the listing as a database and use the path and filename fields separately or join them as needed.

Thank you.

Ralph