1> Export File list 2> Write Protection

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
DaveLissa
Junior Member
Junior Member
Posts: 3
Joined: 2005-05-12, 15:44 UTC

1> Export File list 2> Write Protection

Post by *DaveLissa »

1) Is there a way to export (not print, but export) the list of files, or print to file?

Eg: I want to create a list of a collection of MP3s and put it into a spreadsheet or database

(yes, I know I can use "dir /s /b >files.txt" in the command prompt, but in Total Commander?)

2) Any workaround to make configuration changes for this session only?

In version 4.53, one can write-protect the wincmd.ini file in the Windows directory. If I make a change in the WinCmd options, the change works for that session. Once I close down and re-start it, WinCmd re-reads settings from wincmd.ini.

For ex: I have backup files in a hidden directory, and have a write-protected wincmd.ini, and I fire up WinCommander 4.53. All files marked "hidden" are not displayed. I want to access a hidden directory, so I choose "Configeration", "Options", "Display", "Show Hidden/System Files" and WinCmd shows all hidden directories. I make my changes in those directories. Once I close down and re-start WinCommander, the hidden directories are again hidden.

I can't do this in version 6.x because Total Commander produces an error when I go to "Configuration", "Options" and wincmd.ini is write protected.

Regards,
Dave

PS: Great program...worth every penny I paid :-)
User avatar
franck8244
Power Member
Power Member
Posts: 703
Joined: 2003-03-06, 17:37 UTC
Location: Geneva...

Post by *franck8244 »

1- Create a list of colection
You can use some wcx plugins to create a file list (DiskDir, DiskDir Extended, Makebat, WdxInfoPacker)

2- IIRC that's impossible at the moment, but you can use a button that will toggle the display of hidden files (cm_SwitchHidSys, I do not know if this will work with a locked wincmd.ini)...
TC#88260 -
User avatar
ado
Senior Member
Senior Member
Posts: 445
Joined: 2003-02-18, 13:22 UTC
Location: Slovakia, Pezinok

Re: 1> Export File list 2> Write Protection

Post by *ado »

DaveLissa wrote:1) Is there a way to export (not print, but export) the list of files, or print to file?
Take a look to internal commands:
cm_SaveSelectionToFile - save selected filenames into file
cm_CopyNamesToClip - save selected filenames into clipboard
you will get just filenames without path. If it is not enough for you, simply search this forum, there is plugin that does even more
DaveLissa wrote:2) Any workaround to make configuration changes for this session only?
...you can run TC from batch file that will:
1. copy your default config to c:\windows (or where you have it configured)
2. start TC.

ado
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

you will get just filenames without path
You can get the path as well with cm_CopyFullNamesToClip
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
shumaker212
New Member
New Member
Posts: 1
Joined: 2010-07-21, 09:16 UTC
Location: Sometimes if you want to print folder contents and file details,Windows Explorer has no easy method
Contact:

Directory Printer

Post by *shumaker212 »

DaveLissa wrote:1) Is there a way to export (not print, but export) the list of files, or print to file?

Eg: I want to create a list of a collection of MP3s and put it into a spreadsheet or database

(yes, I know I can use "dir /s /b >files.txt" in the command prompt, but in Total Commander?)

2) Any workaround to make configuration changes for this session only?

In version 4.53, one can write-protect the wincmd.ini file in the Windows directory. If I make a change in the WinCmd options, the change works for that session. Once I close down and re-start it, WinCmd re-reads settings from wincmd.ini.

For ex: I have backup files in a hidden directory, and have a write-protected wincmd.ini, and I fire up WinCommander 4.53. All files marked "hidden" are not displayed. I want to access a hidden directory, so I choose "Configeration", "Options", "Display", "Show Hidden/System Files" and WinCmd shows all hidden directories. I make my changes in those directories. Once I close down and re-start WinCommander, the hidden directories are again hidden.

I can't do this in version 6.x because Total Commander produces an error when I go to "Configuration", "Options" and wincmd.ini is write protected.

Regards,
Dave

PS: Great program...worth every penny I paid :-)
I used a print directory tool to print file list of a directory, take a look at this tool.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

BTW simple batch file may be used to start TC with default settings. E.g. this batch will overwrite your current wincmd.ini with default one so settings will be reverted:) and to make new wincmd.ini default you will need just to copy it over default one.
ado wrote:Take a look to internal commands:
cm_SaveSelectionToFile - save selected filenames into file
cm_CopyNamesToClip - save selected filenames into clipboard
I will expand your answer. There is a command cm_CommandBrowser that contains list of all TC internal commands, and there is a section of commands Clipboard in it that contains all comands to work with clipboard including all commands that copy folder contents.
shumaker212 wrote:I used a print directory tool to print file list of a directory, take a look at this tool.
DaveLissa wants to export (not print, but export) the list of files.
Post Reply