Is there any way to retrieve the bytesize of a file, much in the way one can use Ctrl+Enter to get a file name and Ctrl+Shift+Enter to get the file path?
If not, is there some addon for it?
If no addon, is it hard to create such an addon and bind it to some shortkey?
I am often in need of copying the bytesize of a certain file to the Windows clipboard.
Copy file-bytesize to command-line
Moderators: Hacker, petermad, Stefan2, white
Ulf
No, there is no simple build-in way of copying the size. However, you can use the command cm_CopyFileDetailsToClip to copy all the file details (including size) into clipboard. Actually, it's possible to write a script to extract this size only, but I'm not a script expert…
No, there is no simple build-in way of copying the size. However, you can use the command cm_CopyFileDetailsToClip to copy all the file details (including size) into clipboard. Actually, it's possible to write a script to extract this size only, but I'm not a script expert…
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64
Hi Ulf, welcome to the forum.
Work around 1.)
Windows standard Alt+Enter on file opens properties dialog
from where you can select and Ctrl+C the file size
Work around 2.)
Or open DOS-Box in current dir, select and copy the file size
Work around 3.)
Button or user command:
%comspec% /c
FOR %%I IN (%N) DO @echo %%~zI |cb
Download CB f.ex. from http://www.autohotkey.com/wiki/index.php?title=Command_Line_Utilities
and put it in your path.
HTH?
Thanks to sheepdog for various 'for' lessons
Work around 1.)
Windows standard Alt+Enter on file opens properties dialog
from where you can select and Ctrl+C the file size
Work around 2.)
Or open DOS-Box in current dir, select and copy the file size
Work around 3.)
Button or user command:
%comspec% /c
FOR %%I IN (%N) DO @echo %%~zI |cb
Download CB f.ex. from http://www.autohotkey.com/wiki/index.php?title=Command_Line_Utilities
and put it in your path.
HTH?

Thanks to sheepdog for various 'for' lessons
Ulf,
AHK script:
Activates with Ctrl-Shift-S.
HTH
Roman
AHK script:
Code: Select all
#IfWinActive, ahk_class TTOTAL_CMD
^+s::
Clipboard =
PostMessage, 1075, 2018
ClipWait
FileGetSize, Size, %Clipboard%
Clipboard = %Size%
Size =
Return
HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.