Graphics in Batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
phillid
Posts: 109
Joined: 03 Apr 2010 20:27
Location: Wellington, New Zealand
Contact:

Graphics in Batch

#1 Post by phillid » 16 May 2010 17:02

I'm just wondering whether it is possible to have graphics in a batch file like in EDIT.exe

phillid :wink:

!k
Expert
Posts: 378
Joined: 17 Oct 2009 08:30
Location: Russia

Re: Graphics in Batch

#2 Post by !k » 17 May 2010 01:49


phillid
Posts: 109
Joined: 03 Apr 2010 20:27
Location: Wellington, New Zealand
Contact:

Re: Graphics in Batch

#3 Post by phillid » 17 May 2010 23:10

How do I use it?

!k
Expert
Posts: 378
Joined: 17 Oct 2009 08:30
Location: Russia

Re: Graphics in Batch

#4 Post by !k » 18 May 2010 02:23

OS is XP? ANSI.SYS not worked under CMD.EXE
Add in CONFIG.NT next string

Code: Select all

device=%SystemRoot%\system32\ansi.sys

Then start ansi.sys demo

Code: Select all

command.com /c screen.bat

And must be Image

phillid
Posts: 109
Joined: 03 Apr 2010 20:27
Location: Wellington, New Zealand
Contact:

Re: Graphics in Batch

#5 Post by phillid » 19 May 2010 22:08

When I try that, it says that 'device' is not a command and that it can't find screen.bat

??? :?

!k
Expert
Posts: 378
Joined: 17 Oct 2009 08:30
Location: Russia

Re: Graphics in Batch

#6 Post by !k » 20 May 2010 01:00

code device=%SystemRoot%\system32\ansi.sys need not to perform, but to add it to your "%SystemRoot%\system32\CONFIG.NT" file

screen.bat is here

phillid
Posts: 109
Joined: 03 Apr 2010 20:27
Location: Wellington, New Zealand
Contact:

Re: Graphics in Batch

#7 Post by phillid » 22 May 2010 18:17

Hello. It still doesn't work. :|
It just prints the escape commands on-screen...

I've added the device command to config.nt

Have I missed a step?

phillid

!k
Expert
Posts: 378
Joined: 17 Oct 2009 08:30
Location: Russia

Re: Graphics in Batch

#8 Post by !k » 22 May 2010 23:44

Run command.com /c screen.bat?
cmd.exe /c screen.bat does not work!

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Graphics in Batch

#9 Post by aGerman » 23 May 2010 12:36

Hi guys.

I'm virtually certain that command.com isn't available on a 64 bit OS (because 16 bit apps don't work on it). So you phillid should check it.
Here I attached a small tool I wrote in C++. You could try it. But I never got a reply if it would work on a 64 bit Windows OS too.

Regards
aGerman

phillid
Posts: 109
Joined: 03 Apr 2010 20:27
Location: Wellington, New Zealand
Contact:

Re: Graphics in Batch

#10 Post by phillid » 23 May 2010 23:44

OK Cool!!! Thanks so much !k

aGerman, the program works absolutely fine on XP

I'll tell some my friends about these solutions, some of them have also been wondering how to do this too!


Thanks!
:D :D :D :D

Phillid

Post Reply