Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

foxpro for dos images

Cybermens

Programmer
Mar 25, 2025
15
hi, does foxpro for dos have a image viewer or there a way to trigger a image to pop up which will be saved in a windows folder
 
Nope. DOS is a textbased OS, there is no way to show pictures in textmode.
But there once was an AddOn for FoxPro, called ESPIA, which was able to switch to a Graphicsmode, which needed the presence of a supported Hercules, CGA or EGA Graphiccard and then diplayed a picture. As far as I remember, it was also very slow, you could see the display lines building up.
 
hi, does foxpro for dos have a image viewer or there a way to trigger a image to pop up which will be saved in a windows folder
If you are running FoxPro for DOS on a 32-bit Windows based system you could trigger Windows to show the image, then hit alt-tab to switch back to the DOS screen or the command window.

To trigger the default viewer for the image in Windows just use RUN START imageFileName and it will likely launch the browser or Paint program.

If the filename is a variable, use RUN START &VariablewithFilename
 
If you are running FoxPro for DOS on a 32-bit Windows based system you could trigger Windows to show the image, then hit alt-tab to switch back to the DOS screen or the command window.

To trigger the default viewer for the image in Windows just use RUN START imageFileName and it will likely launch the browser or Paint program.

If the filename is a variable, use RUN START &VariablewithFilename
can you explain what will be the coding like in foxpro that it somewhat works like a hyperlink that should trigger the appropriate image file.
 
He already did. The code is
Code:
RUN START imageFileName

for example with an image in C:\my images\image.jpg
Code:
RUN START "C:\my images\image.jpg"
It's not giving you control what image software, this works with the standard association of file name extensions.
When you're in fullscreen DOS text screen mode, this will not show, I guess, but when you close the DOS screen you'll see the standard application for jpg images has started and displays it.
 
Last edited:

Part and Inventory Search

Sponsor

Back
Top