Is there a Windows command that will output the size in bytes of a specified file like this?
> filesize test.jpg 65212
I know that the dir command outputs this information, but it outputs other information also.
I could easily write such a program, but I would prefer to use a native Windows command if possible, or only what is available in a fresh install of Windows XP.
If you are inside a batch script, you can use argument variable tricks to get the filesize:
filesize.bat:
This gives results like the ones you suggest in your question.
Type
at the command prompt for all of the crazy variable manipulation options. Also see this article for more information.
Edit: This only works in Windows 2000 and later