Hi!
Is there a way to save selected file names to a file, but without their extensions. Or to copy their names without extensions?
Save selection to file without extension?
Moderators: Hacker, petermad, Stefan2, white
Copy Save file names without extensions remove extensions
Hi.
No not really,
But you can utilize simple DOS commands like 'for %A do %~nA'
To use this create a button, or create a new command in usercmd.ini:
To create a file with all selected file name without extensions:
** Command: cmd /c
** Parameter: FOR /F "tokens=*" %%A in ('type %F') DO @ECHO %%~nA >> "C:\myFileList.txt"
To copy all selected file name without extensions to clipboard:
** Command: cmd /c
** Parameter: DEL %%tmp%%\x && FOR /F "tokens=*" %%A in ('type %F') DO @ECHO %%~nA >> %%tmp%%\x && type %%tmp%%\x |clip
That "%F" is a TC parameter. While in button dialog press F1 key to read more about such parameters.
Search the forum with that keywords for more tips and tricks...
(EDIT: changed %tmp% to %%tmp%% as TC remove always one %)
No not really,
But you can utilize simple DOS commands like 'for %A do %~nA'
To use this create a button, or create a new command in usercmd.ini:
To create a file with all selected file name without extensions:
** Command: cmd /c
** Parameter: FOR /F "tokens=*" %%A in ('type %F') DO @ECHO %%~nA >> "C:\myFileList.txt"
To copy all selected file name without extensions to clipboard:
** Command: cmd /c
** Parameter: DEL %%tmp%%\x && FOR /F "tokens=*" %%A in ('type %F') DO @ECHO %%~nA >> %%tmp%%\x && type %%tmp%%\x |clip
That "%F" is a TC parameter. While in button dialog press F1 key to read more about such parameters.
Search the forum with that keywords for more tips and tricks...
(EDIT: changed %tmp% to %%tmp%% as TC remove always one %)
Last edited by Stefan2 on 2014-08-24, 09:27 UTC, edited 1 time in total.
Copy Save file names without extensions remove extensions
Add a leading question mark to the para and you will be prompt to modify the command line before executing:TauMaster wrote:How to make program to ask where the file to be located?
** Parameter: ?FOR /F .......
(With leading "?" you can also inspect every command if it is a valid one.
That's why I modified my script in the last post and doubled the percent signs on %tmp%)
Just drop the path part and use the file name only:For example - not in C:\myFileList.txt, but in the directory,
where the selected files are located?
** Parameter: FOR /F .......~nA >> "myFileList.txt"
Alternatively you can use the TC parameter %P (again, see the help)
** Parameter: FOR /F .......~nA >> "%P\myFileList.txt"