| View previous topic :: View next topic |
| Author |
Message |
tykling New Member

Joined: 16 Feb 2006 Posts: 1
|
Posted: Thu Feb 16, 2006 11:07 am Post subject: Feature request: Dump file list to text file |
|
|
As subject says, I'd like the possibility to feed whatever is in a listbox (a directory or the results of a search, for example) to a text file for use elsewhere.
Thanks for a world class program! |
|
| Back to top |
|
 |
icfu Power Member

Joined: 10 Sep 2003 Posts: 6059
|
|
| Back to top |
|
 |
majkinetor ! Power Member


Joined: 18 Jan 2006 Posts: 1571
|
Posted: Thu Feb 16, 2006 12:35 pm Post subject: |
|
|
GetNames.bat
| Code: | @echo off
:: =================================================================
:: PURPOSE: Starts editor with list of all files in current folder
:: ARG : %1 (folder to display, optional)
:: =================================================================
dir %1 /b /OG /ON > %temp%\_GetNames.txt
start "%UTILS%\Edit Plus\EditPlus.exe" %temp%\_GetNames.txt |
This is for regular cmd.exe, but you can call it from TC to get current dir names. For selection, search and other things it is even easier, just use %L param in start menu to get the list as direct param to your editor. _________________
Habemus majkam!
www.r-moth.com http://r-moth.deviantart.com |
|
| Back to top |
|
 |
orndorff Junior Member

Joined: 16 Feb 2006 Posts: 2
|
Posted: Thu Feb 16, 2006 3:29 pm Post subject: |
|
|
I added a menu item to allow me to copy either the selected file names or the selected path+file names. Just add this to your .lng file:
| Code: | POPUP "C&ustom"
MENUITEM "Copy Filename to Clipboard", 2017
MENUITEM "Copy Path\Filename to Clipboard", 2018
END_POPUP
|
I use this *all* the time. The names get copied to the clipboard as text, and then I can paste it into whatever I want.
FYI, I just make a copy of the WCMD_ENG.MNU file and add my customizations to it and then use that as my main menu file. |
|
| Back to top |
|
 |
Sheepdog Power Member


Joined: 18 Dec 2003 Posts: 5155 Location: Berlin, Germany
|
Posted: Thu Feb 16, 2006 3:48 pm Post subject: |
|
|
| orndorff wrote: | | FYI, I just make a copy of the WCMD_ENG.MNU file and add my customizations to it and then use that as my main menu file. |
FYI when you download the english language file and rename it corresponding to your menu e.g.
WCMD_ENG_Orndorff.lng and WCMD_ENG_Orndorff.mnu you have only to select the WCMD_ENG_Orndorff.lng to choose your menu in the TC dialog.
Changing the very first line of the language file from "English" to "Orndorff" will display "Orndorff" as name for the language.
sheepdog _________________ "A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams |
|
| Back to top |
|
 |
Lefteous Power Member


Joined: 08 Feb 2003 Posts: 7671 Location: Germany
|
Posted: Thu Feb 16, 2006 3:54 pm Post subject: |
|
|
| Quote: | FYI when you download the english language file and rename it corresponding to your menu e.g.
WCMD_ENG_Orndorff.lng and WCMD_ENG_Orndorff.mnu you have only to select the WCMD_ENG_Orndorff.lng to choose your menu in the TC dialog.
Changing the very first line of the language file from "English" to "Orndorff" will display "Orndorff" as name for the language. |
...and don't forget to rename your content plugin language file sections to ENG_Orndorff.  |
|
| Back to top |
|
 |
petermad Power Member


Joined: 05 Feb 2003 Posts: 5351 Location: Valsted, Denmark
|
Posted: Thu Feb 16, 2006 4:18 pm Post subject: |
|
|
2Lefteous
| Quote: | | and don't forget to rename your content plugin language file sections to ENG_Orndorff |
I don't understand that statement - most content plugins - including your own - will set the language to ENG(lish) if character 6-8 of the .LNG file name spells ENG ? _________________ #524
Danish Total Commander Translator
Windows XP Home 32bit SP3 & Windows 7 Home Premium 64bit SP1 and Windows 8. TC 8.01 32 + 64bit
Get Extended Total Commander Menus |
|
| Back to top |
|
 |
Lefteous Power Member


Joined: 08 Feb 2003 Posts: 7671 Location: Germany
|
Posted: Thu Feb 16, 2006 4:24 pm Post subject: |
|
|
2petermad
| Quote: | | I don't understand that statement - most content plugins - including your own - will set the language to ENG(lish) if character 6-8 of the .LNG file name spells ENG ? |
TC doesn't check for characters 6-8 - it checks for everything behind the underscore.
BTW: I never heared of the language ENG Orndorff..  |
|
| Back to top |
|
 |
icfu Power Member

Joined: 10 Sep 2003 Posts: 6059
|
Posted: Thu Feb 16, 2006 4:36 pm Post subject: |
|
|
| Quote: | | TC doesn't check for characters 6-8 - it checks for everything behind the underscore. |
I cannot reproduce that. When I rename [deu] to [DEU_TCExtMenu] in DirSizeCalc.lng because the language file is WCMD_DEU_TCExtMenu.LNG, this has no effect. Plugin is still English instead of German.
Icfu _________________ This account is for sale |
|
| Back to top |
|
 |
Lefteous Power Member


Joined: 08 Feb 2003 Posts: 7671 Location: Germany
|
Posted: Thu Feb 16, 2006 4:44 pm Post subject: |
|
|
2icfu
| Quote: | | I cannot reproduce that. When I rename [deu] to [DEU_TCExtMenu] in DirSizeCalc.lng because the language file is WCMD_DEU_TCExtMenu.LNG, this has no effect. Plugin is still English instead of German. |
Strange - in this what you reported here is wrong and we have to restart the discussion
I currently have no idea what TC is actially doing
http://www.ghisler.ch/board/viewtopic.php?p=80524#80524 |
|
| Back to top |
|
 |
petermad Power Member


Joined: 05 Feb 2003 Posts: 5351 Location: Valsted, Denmark
|
Posted: Thu Feb 16, 2006 4:55 pm Post subject: |
|
|
2Lefteous
| Quote: | | TC doesn't check for characters 6-8 - it checks for everything behind the underscore |
I checked it out - you are partly right. TC seems to check the first 3 characters after the LAST underscore.
So if I for example use a language file called WCMD_DAN2.LNG then All my content plugins uses the [DAN] section in their respective language files. The same applies if I use a language file called WCMD_DANPeter.LNG or WCMD_xxx_DAN.LNG but NOT WCMD_DAN_Peter.LNG.
So you are right: WCMD_ENG_Orndorff.lng is not a good choice because of the second underscore before Orndorff -- WCMD_ENGOrndorff.lng, "WCMD_ENG Orndorff.lng" or WCMD_Orndorff_ENG.lng would be better (if one wants English translations of the content plugins) _________________ #524
Danish Total Commander Translator
Windows XP Home 32bit SP3 & Windows 7 Home Premium 64bit SP1 and Windows 8. TC 8.01 32 + 64bit
Get Extended Total Commander Menus |
|
| Back to top |
|
 |
icfu Power Member

Joined: 10 Sep 2003 Posts: 6059
|
Posted: Thu Feb 16, 2006 4:56 pm Post subject: |
|
|
| Quote: | | Strange - in this what you reported here is wrong and we have to restart the discussion |
I haven't reported and claimed that a rename of a plugin section will switch language.
Sheepdog has claimed it in that thread and you have agreed.
I also cannot reproduce what petermad has just told. Even when I rename the file to WCMD_DEUTCExtMenu.lng without underscore, the [deu] section is ignored. It's also ignored when I rename it to [DEUTCExtMenu].
Icfu _________________ This account is for sale
Last edited by icfu on Thu Feb 16, 2006 5:03 pm; edited 2 times in total |
|
| Back to top |
|
 |
Lefteous Power Member


Joined: 08 Feb 2003 Posts: 7671 Location: Germany
|
Posted: Thu Feb 16, 2006 4:57 pm Post subject: |
|
|
2petermad
So it really seems the underscore is the source of all the trouble? In this case we finally have a good solution  |
|
| Back to top |
|
 |
petermad Power Member


Joined: 05 Feb 2003 Posts: 5351 Location: Valsted, Denmark
|
Posted: Thu Feb 16, 2006 5:10 pm Post subject: |
|
|
2Lefteous
Wonder if Black Dog knew this when he named the file Wcmd_exp_eng.lng in his Total Commander Interface Pack Expansion v.6.03 - or was he just lucky  _________________ #524
Danish Total Commander Translator
Windows XP Home 32bit SP3 & Windows 7 Home Premium 64bit SP1 and Windows 8. TC 8.01 32 + 64bit
Get Extended Total Commander Menus |
|
| Back to top |
|
 |
Sheepdog Power Member


Joined: 18 Dec 2003 Posts: 5155 Location: Berlin, Germany
|
Posted: Thu Feb 16, 2006 5:18 pm Post subject: |
|
|
Sorry, apparently I was talking 'bout the content plugin while I was referring to the packer plugin.
sheepdog _________________ "A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams |
|
| Back to top |
|
 |
|