953Views3Replies

Author Options:

Batch or .bat image viewing. Answered

I would like to know how you display an image inside of a batch file so it is present in the same window as the program.

Tags:bat

3 Replies

user
lemonie (author)2012-02-28

You don't, the environment doesn't support image-files.

L

Select as Best AnswerUndo Best Answer

user
g-one (author)2012-02-28

Batch files are running in a console window. On modern Windows OS's cmd.exe interprets the Batch code, on DOS and early Windows versions its done via command.com. Only charactes are supported and cmd.exe itself can only display one out of 16 background colors and one out of 16 text colors. There is no chance to display an image inside of the window. All you could do is some ASCII arts and you could use one of those third party tools that allows you to select separate colors for each character.

Select as Best AnswerUndo Best Answer

user
The SkinnerzBest Answer (author)2012-02-28

You can't in the same window, as it is a fairly restricted text interface. You can however tell it to open images in external program using the START command. Alternatively, if really want to, simple ASCII graphics are possible, and can even be persuaded to use colours.

Select as Best AnswerUndo Best Answer