Go Back   Computer Forums > General Computing > Programming
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 08-27-2005, 11:05 PM   #1
Solid State Member
cam123's Avatar
Join Date: Aug 2005
Posts: 6
Default Color Batch files

Is it possable to add color to batch files?
Also how do you program ".exe" files (like windows setup.exe)


cam123 is offline   Reply With Quote
Old 08-28-2005, 03:42 PM   #2
Baseband Member
Griz803's Avatar
Join Date: Jun 2004
Posts: 89
Default Re: Color Batch files

First, you can use ANSI Terminal Escape sequences to change color and properties with the ansi.sys DOS driver. Read the help files on the driver and this website discusses the sequences for various properties:http://www.dee.ufcg.edu.br/~rrbrandt/tools/ansi.html
Second, you create an *.exe file by compiling source code of some language with a compiler for that language, then linking the resulting object code with a linker. Most languages have compilers available for free or at cost. The Qbasic language included with MS-DOS/Win9X is actually only an interpreter that will run the code from RAM when told to do so. It can't make an executable file or even object code without a lot of very complex gyrations and general tom foolery. If you are interested in programming, I'd personally recommend learning C and C++, in that order. Lots of luck, hope this explains it well enough.

/*What does not kill us, makes us drink far too much caffeine*/
Griz803 is offline   Reply With Quote
Old 09-01-2005, 08:55 PM   #3
Solid State Member
cam123's Avatar
Join Date: Aug 2005
Posts: 6
Default Re: Color Batch files

Thanks for the info but I have anoter problem
i crashed my computer on a acedent (i think i moved the autoexec.bat) and i just got my hard drive to boot up with fdisk,but my cdrom drive is not installed so i cant install windows.thanks
cam123 is offline   Reply With Quote
Old 09-23-2005, 12:59 PM   #4
Baseband Member
Join Date: Jul 2004
Posts: 23

You sort of lost me there. You formatted your HDD with Fdisk? So you have nothing on your HDD not even DOS? Well first of all your BIOS should detect your cd-rom whether you have a driver for it or not (I think). You need to try to change the boot order in BIOS, and set your cd-rom to first (if it detects your cd-rom), and then just pop your windows disk in and install it. If for some reason you cannot identify your cd-rom in BIOS, then you will have to load some version of DOS on your HDD via floppy disks, setting the floppy drive to 1st on the boot order. And then try to install a cd-rom driver from there. DOS has a built in cd-rom driver which may not work with newer cd-roms, but it is called mscdex. You can read about it here, along with some autoexec.bat and config.sys pointers: http://support.microsoft.com/kb/q135174/. If I just mis-understood you about formatting your disk then just create a boot disk and add cd-rom pointers in the autoexec and config files then boot from A: to get going.

Give me some feedback on this and I can help you better.
cybershark5886 is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 12:28 AM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0