How can i save all my files names into TXT file?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

User avatar
Xtrician
Senior Member
Senior Member
Posts: 412
Joined: 2005-04-24, 10:29 UTC
Location: Israel

How can i save all my files names into TXT file?

Post by *Xtrician »

Thanks..
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

The MakeBat plugin can help with this problem.
I switched to Linux, bye and thanks for all the fish!
User avatar
TrePe
Junior Member
Junior Member
Posts: 41
Joined: 2004-02-10, 23:30 UTC
Location: Slovakia

Re: How can i save all my files names into TXT file?

Post by *TrePe »

Try DiskDir or DiskDir Extended and find out whether it meets your needs.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Code: Select all

dir c:\ /s >d:\My_C_Drive.txt
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Xtrician
Senior Member
Senior Member
Posts: 412
Joined: 2005-04-24, 10:29 UTC
Location: Israel

Post by *Xtrician »

2TrePe
DiskDir save is as broken file ..
I mean to save the names into txt.
But thanks all i use create CRC Cheskum, and i have other option to copy the names to clipboard.
Elad
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

DiskDir save is as broken file ..
???
DiskDir works fine here.
I switched to Linux, bye and thanks for all the fish!
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Sheepdog wrote:

Code: Select all

dir c:\ /s >d:\My_C_Drive.txt
Enhancing this to really include ALL filenames - without additional stuff like filesizes and filetimes - we end up launching

Code: Select all

dir c:\ /a /ogn /b /s  > d:\My_C_Drive.txt
Perhaps this list is more to your liking, Xtrician? It is a pure ASCII file.

Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

karlchen wrote:

Code: Select all

dir c:\ /a /ogn /b /s  > d:\My_C_Drive.txt
/ogn is cool, didn't expect that it works like that.

thanks

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hm , perhaps the correct form would be this:

Code: Select all

dir c:\ /a:-d /on /b /s  > d:\My_C_Drive.txt
Reason:
/a will include any files and directories, no matter what their attributes are.
/a:-d will exclude any directory, but include all files, no matter what their attributes are.

So this will list ALL files from all (sub)directories, but without listing the directory names themselves.
And the request was to list all filenames, not all directory names or both.

Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
nsp
Power Member
Power Member
Posts: 1913
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

if you use some "exotic filenames" mean accentuated, ù é ê § .....

the dir command do not work correctly unless you use a correct codepage !

for this you should use

Code: Select all

chcp 1252
or any other codepage

if you want to copy only some selected file-name into a particurar textfile, you can use TCBlnch : http://www.geocities.com/nospam0123456/forTC

you can add a button in your tcBar
set command to :
tcbllnch
set parrameters to -q %L echo $f $AC:\MySelectedFiles.txt

..

Select some File inside TC and add the long filename in your file by clicking on your button !
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

---- GET_NAMES.bat

Code: Select all

@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
Last edited by majkinetor on 2006-01-03, 10:29 UTC, edited 1 time in total.
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

@nsp:
You should explain that "TCBlnch" app in more detail, start with explaining why anyone should use it and what to do with it. It looks too geeky on first sight and not very attractive to try out.

Somehow it looks like a lst2multi replacement. But, why should I create a batch and start that instead of directly starting the application?

Icfu
This account is for sale
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

2 icfu

Here is the banana I promised long ago, for your new storage place :)

www.r-moth.com/_/bananasplit/bananasplit.rar (~25K)
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Thanks. :)

Icfu
This account is for sale
Post Reply