Solved

Display PCX file on Dos Screen

Posted on 2004-04-23
5
340 Views
Last Modified: 2008-02-07
Does anyone know how to display a PCX file in a  Dos Window?
Any alternative format that can be displayed in dos? How do I it?
0
Comment
Question by:vico1
  • 2
  • 2
5 Comments
 
LVL 67

Assisted Solution

by:sirbounty
sirbounty earned 25 total points
ID: 10905842
0
 
LVL 15

Author Comment

by:vico1
ID: 10913978
Sorry It took so long Sirbounty
I have checked your links
But I could not really find a way to display a PCX file. May be the following explanation will Help:

I need to display a pcx file (logo.pcx) from a Batch file something like

@echo off
display logo.pcx (for a few seconds)
:Begin
My codes
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 10914396
Hmm...for something like that, I think you'll have to find a suitable viewer(like Quick View) and then write your script like this (with PSKill from PSTools -http://www.sysinternals.com/ntw2k/freeware/pskill.shtml)

@echo off
Quickview logo.pcx
sleep 300
pskill Quickview
:Begin
::your code
0
 
LVL 3

Accepted Solution

by:
Beluga earned 25 total points
ID: 11016052
Another way to tackle the problem is to use a slideshow program instead of an image viewer. These are normally used for displaying a succession of images at pre-defined intervals. Of course, you'll only have one image in your slideshow, but the program will allow you to clear the screen after a certain number of seconds.

One example:
ftp://ftp.eunet.bg/pub/simtelnet/msdos/graphics/pcxshow3.zip

The above needs a script file writing (plain text), but after briefly reading through the manual, something like the following should work (untested):

LOAD image.pcx 1
SEND 1
DELAY 3
CLR 1

Line 1 loads image.pcx into memory
Line 2 copies this into video memory
Line 3 pauses for 3 seconds
Line 4 clears the screen

... in theory ;o)  I can't test this at the moment, but the script should be pretty close to that.

There are other slideshow programs in:
ftp://ftp.eunet.bg/pub/simtelnet/msdos/graphics
 ... in case the one above doesn't work for you.

(thanks to sirbounty for reminding me about Simtelnet - another good DOS archive is at www.leo.org, but seems to be having problems this afternoon).

Beluga
0
 
LVL 15

Author Comment

by:vico1
ID: 11039718
Sorry It took so long.

The above solution seems to work, however pcxsho.exe is a trialware.
I would prefer something that I do not have to buy, just in case it does not work the way that would expect it to.
If there is any other solutions I am open for suggestion.

Thanks to Sirbounty and Beluga

Vico1
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question