Display files in folder with their sequential number
Moderators: Hacker, petermad, Stefan2, white
Display files in folder with their sequential number
Hi
Is there a way to display a sequential number of a file in folder ?
for example:
I need to sort files in directory by name, and see which is the 56th file in the list etc.
can someone suggest the easiest way to access directly file number nn in a folder ?
thank you !!!
Is there a way to display a sequential number of a file in folder ?
for example:
I need to sort files in directory by name, and see which is the 56th file in the list etc.
can someone suggest the easiest way to access directly file number nn in a folder ?
thank you !!!
You could use the multi-rename tool to put sequential numbers in front of each file name - you don't have to perform the actual rename operation, but just use the preview of the new names to see the number of the file.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
thanks - but this is good for one time ..... as I need to run some operations on the files... e.g. DELETE - which will cause seq numbers to change...
I wonder if there is a way to display a selected file seq number at the bottom of the screen (like it shows the size of selected files / number of files)
thanks
I wonder if there is a way to display a selected file seq number at the bottom of the screen (like it shows the size of selected files / number of files)
thanks
very simple.
I got a usb drive with many songs on.
I got list of files to modify. the list include only song number (as displayed on the usb player screen)
the guy send me "song" number and the change he ask for.
the songs are sorted by name.
if you go from bottom to top - you can delete files while number of the rest of the files left unchanged.
so all I need is quick access to file #nn in directory (or see its number somewhere...)
hope I am clear.
thank you !!!
I got a usb drive with many songs on.
I got list of files to modify. the list include only song number (as displayed on the usb player screen)
the guy send me "song" number and the change he ask for.
the songs are sorted by name.
if you go from bottom to top - you can delete files while number of the rest of the files left unchanged.
so all I need is quick access to file #nn in directory (or see its number somewhere...)
hope I am clear.
thank you !!!
I think in such case you need extra filelist anyway (e.g. text editor with line numbers).
BTW you may use file comments for numbering. This batch will enumerate files (sorted by names) in a given folder with comments 000001, 000002 etc. so you can see numbers in a comment column of custom column set (and even sort by them):
Just save as somename.CMD and drag onto buttonbar, then specify %P in parameters field. And, you may need to enable TC option to read DOS file comments to see numbers for names with non-English characters. It will backup your existing descript.ion file.
BTW you may use file comments for numbering. This batch will enumerate files (sorted by names) in a given folder with comments 000001, 000002 etc. so you can see numbers in a comment column of custom column set (and even sort by them):
Code: Select all
@echo off
if -%1==- echo Parameters: %%P & pause & goto :EOF
if exist "%~1\descript.ion" (
if exist "%~1\descript.~ion" ( del "%~1\descript.ion" ) else ( ren "%~1\descript.ion" "descript.~ion" )
)
set filenum=0
set descfile="%~1\descript.ion"
for /f "usebackq delims=" %%f in (`dir /b /on /a:-d %1`) do call :nextfile "%%f"
goto :EOF
:nextfile
set /a filenum=%filenum%+1
set filenum_d=00000%filenum%
echo %1 %filenum_d:~-6% >> %descfile%
goto :EOF
Thank you very much for your help !!!!
I did this:
created the .cmd file
added to the buttonbar with %P parameter
clicked and the bat ran OK !
created file descript.ion
I miss the next step.... How to use this ion file so that its data will be used as input to TC ?
one more step and I got it !!!
thank you again
I did this:
created the .cmd file
added to the buttonbar with %P parameter
clicked and the bat ran OK !
created file descript.ion
I miss the next step.... How to use this ion file so that its data will be used as input to TC ?
one more step and I got it !!!
thank you again
In TC menu go to "Show\Custom Columns Mode\Configure Custom Columns" and setup new column set with desired fields plus field tc.comment. Then switch to that column set to see comment column.
Also go to Configuration dialog, Operation section and check boxes "DOS charset" and "Read from both" in "File comments" group.
Also go to Configuration dialog, Operation section and check boxes "DOS charset" and "Read from both" in "File comments" group.