Issues with dimensions of DOS BATCH file on my Windows 7

adi2012

New member
Local time
12:14 AM
Messages
7
Hello,

I have recently bought my new laptop on which I have installed some (old) software which is used for accounting. That software is made in DOS. Maximum resolution of my laptop display is 1280 x 720

When I open my software using BATCH file (as I always did), DOS window becomes streched, specially by height which oversizes my display height and I can't see content-data of my software. Please see screen bellow

kzy8.jpg


and this is how code of my BATCH file looks like:

Code:
PATH=C:\;C:\DLL1.9;C:\DBASE
cd..
CD mpsg
CD MP2014
DATE
MPSW
Problem is that I can't figure ot how to change the code of the BATCH file in order to show screen of my software in controlled size (for example 640x480)?

Any help is appreciated and many thanks in advance for prompt reply!

Adi
 
Last edited:

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Well the biggest problem here is windows 7 does not use DOS. DOS was eliminated after XP i believe. So with that being said you probably will encounter some compatibility issues which may require you to update to a much more modern accounting program. While that may not be what you really want to hear it is the truth; as no one(well very very few people) use DOS anymore as its ancient and beyond its time. Again biggest reason here is compatibility issues which is most likely why you cant see anything.
 

My Computer My Computer

At a glance

Windows 7 ultimate 64-bitIntel I7 2600K 3.4ghzCorsair 16gb ddr3 1600mhzNvidia Geforce gt 430
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom built
OS
Windows 7 ultimate 64-bit
CPU
Intel I7 2600K 3.4ghz
Motherboard
Asus Evo P8P67
Memory
Corsair 16gb ddr3 1600mhz
Graphics Card(s)
Nvidia Geforce gt 430
Sound Card
Sound Blaster Titanium x-fi pci express
Monitor(s) Displays
Dell E198WFP
Hard Drives
1 western digital 2TB drive.
PSU
Antec 1200 watt
Case
Inwin Dragon Rider
Cooling
6 case supplied cooling fans
Keyboard
logitech mk700
Mouse
logitech m705
Internet Speed
25-50mbps download; 10mbps upload(i think)
Antivirus
avg free 2014
Browser
mozilla firefox
Other Info
Also have a pretty bad speaker setup which is a klipsch promedia 5.1 surround speaker setup with huge subwoofer and lg blu ray player/writer. Also a hp officejet pro 8600 plus wireless all in one and a logitech s7500 webcam.
Hello Matt,

I understand that really but thing is that my software is working almost perfect on Win7 (same as on XP) *except* that I can't see 20% of of my screen (bottom height). I don't see any reason why would it be impossible to control size of DOS window in Win7 using BATCH file?

Thank you,
Adi
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Well the biggest problem here is windows 7 does not use DOS. DOS was eliminated after XP i believe. So with that being said you probably will encounter some compatibility issues which may require you to update to a much more modern accounting program. While that may not be what you really want to hear it is the truth; as no one(well very very few people) use DOS anymore as its ancient and beyond its time. Again biggest reason here is compatibility issues which is most likely why you cant see anything.

That is wrong. If dos wasn't there you would not be running anything. A batch file uses a MS dos prompt. Dos has been in windows and was never taken out of it. Every time you open a command prompt you are running a ms dos emulation prompt.

See here: https://en.wikipedia.org/wiki/DOS

Having said that, if you have a 64 bit windows system you will have a very hard time running dos software.

See this for reference: http://www.pcworld.com/article/243718/run_dos_programs_in_windows_7.html

@adi2012

Please see these threads I found useful. Google is your friend.

https://stackoverflow.com/questions...-size-in-dos-command-prompt-from-batch-script

How to change the size of the window in a batch file
 

My Computer My Computer

At a glance

Windows 10 ProAMD Ryzen 5 2400G Processor with Radeon RX Ve...G.SKILL Ripjaws V Series 16GB (2 x 8GB) 288-P...2047MB NVIDIA GeForce GTX 1060 6GB (EVGA)
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Built
OS
Windows 10 Pro
CPU
AMD Ryzen 5 2400G Processor with Radeon RX Vega 11 Graphics
Motherboard
ASRock X470 Master SLI/AC AM4 AMD Promontory X470 SATA 6Gb/s
Memory
G.SKILL Ripjaws V Series 16GB (2 x 8GB) 288-Pin DDR4 SDRAM D
Graphics Card(s)
2047MB NVIDIA GeForce GTX 1060 6GB (EVGA)
Sound Card
Motherboard Built in
Monitor(s) Displays
Acer R240HY bidx 23.8-Inch IPS HDMI DVI VGA (1920 x 1080) Wi
Screen Resolution
1920 x 1080
Hard Drives
1TB Sandisk SSD PLUS (Main drive)
500 GB Seagate 7200 RPM (Games)
500 GB Western Digital 7200 RPM (Virtual Machines)
PSU
CORSAIR TX Series TX650M 650W 80+ Gold Modular Power Supply
Case
CORSAIR CARBIDE SPEC-02 Mid-Tower Gaming Case, Red LED Fan
Cooling
220mm, two 120mm, and four 60mm fans
Keyboard
Wired Dell keyboard
Mouse
Wireless Logitech mouse
Internet Speed
250mb down, 30mb up
Antivirus
Panda Cloud Antivirus
Browser
Chrome-ish x64
Other Info
Your awesome for reading this.
We must be very clear what is meant by "DOS". DOS is a very old operating system. The term is also incorrectly used to refer to the command line.

The 16 bit subsystem (necessary to run DOS applications) has been a part of 32 bit NT class operating systems from the beginning. But it is not an essential part of the OS and in fact has been totally removed from 64 bit systems. It could be removed from 32 bit systems as well and most people would never notice the difference.

By default batch files run under cmd.exe which even in 32 bit system does not operate in an emulated DOS environment. Most batch files operate in the 32 or 64 bit environment of the OS and know nothing of DOS. cmd.exe can launch 16 bit DOS applications which then run in an emulated environment.

command.com (available in 32 bit Windows) does operate in an emulated DOS environment. It was provided for better compatibility with DOS programs.
 

My Computer My Computer

At a glance

Windows 7 Pro 64 bitXeon W35208 GBNvidia Geforce 210
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
@LMiller7

Thank you for that information. I would rep you but i have to spread it around. Could you give a link with more information? I searched but cannot seem to find it saying exactly what you said.
 

My Computer My Computer

At a glance

Windows 10 ProAMD Ryzen 5 2400G Processor with Radeon RX Ve...G.SKILL Ripjaws V Series 16GB (2 x 8GB) 288-P...2047MB NVIDIA GeForce GTX 1060 6GB (EVGA)
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Built
OS
Windows 10 Pro
CPU
AMD Ryzen 5 2400G Processor with Radeon RX Vega 11 Graphics
Motherboard
ASRock X470 Master SLI/AC AM4 AMD Promontory X470 SATA 6Gb/s
Memory
G.SKILL Ripjaws V Series 16GB (2 x 8GB) 288-Pin DDR4 SDRAM D
Graphics Card(s)
2047MB NVIDIA GeForce GTX 1060 6GB (EVGA)
Sound Card
Motherboard Built in
Monitor(s) Displays
Acer R240HY bidx 23.8-Inch IPS HDMI DVI VGA (1920 x 1080) Wi
Screen Resolution
1920 x 1080
Hard Drives
1TB Sandisk SSD PLUS (Main drive)
500 GB Seagate 7200 RPM (Games)
500 GB Western Digital 7200 RPM (Virtual Machines)
PSU
CORSAIR TX Series TX650M 650W 80+ Gold Modular Power Supply
Case
CORSAIR CARBIDE SPEC-02 Mid-Tower Gaming Case, Red LED Fan
Cooling
220mm, two 120mm, and four 60mm fans
Keyboard
Wired Dell keyboard
Mouse
Wireless Logitech mouse
Internet Speed
250mb down, 30mb up
Antivirus
Panda Cloud Antivirus
Browser
Chrome-ish x64
Other Info
Your awesome for reading this.
Try using DosBox to run your program. The DOS emulation Windows provides is quite bad since many versions ago so that problems like that might happen.
DOSBox, an x86 emulator with DOS
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
ok so maybe I was a bit off. Oh well. at least i tried ;)
 

My Computer My Computer

At a glance

Windows 7 ultimate 64-bitIntel I7 2600K 3.4ghzCorsair 16gb ddr3 1600mhzNvidia Geforce gt 430
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom built
OS
Windows 7 ultimate 64-bit
CPU
Intel I7 2600K 3.4ghz
Motherboard
Asus Evo P8P67
Memory
Corsair 16gb ddr3 1600mhz
Graphics Card(s)
Nvidia Geforce gt 430
Sound Card
Sound Blaster Titanium x-fi pci express
Monitor(s) Displays
Dell E198WFP
Hard Drives
1 western digital 2TB drive.
PSU
Antec 1200 watt
Case
Inwin Dragon Rider
Cooling
6 case supplied cooling fans
Keyboard
logitech mk700
Mouse
logitech m705
Internet Speed
25-50mbps download; 10mbps upload(i think)
Antivirus
avg free 2014
Browser
mozilla firefox
Other Info
Also have a pretty bad speaker setup which is a klipsch promedia 5.1 surround speaker setup with huge subwoofer and lg blu ray player/writer. Also a hp officejet pro 8600 plus wireless all in one and a logitech s7500 webcam.
@LMiller7

Thank you for that information. I would rep you but i have to spread it around. Could you give a link with more information? I searched but cannot seem to find it saying exactly what you said.

I don't think I can provide a link. These are things I learned from various sources over the years and from experimentation.
 

My Computer My Computer

At a glance

Windows 7 Pro 64 bitXeon W35208 GBNvidia Geforce 210
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
No problem, thank you.
 

My Computer My Computer

At a glance

Windows 10 ProAMD Ryzen 5 2400G Processor with Radeon RX Ve...G.SKILL Ripjaws V Series 16GB (2 x 8GB) 288-P...2047MB NVIDIA GeForce GTX 1060 6GB (EVGA)
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Built
OS
Windows 10 Pro
CPU
AMD Ryzen 5 2400G Processor with Radeon RX Vega 11 Graphics
Motherboard
ASRock X470 Master SLI/AC AM4 AMD Promontory X470 SATA 6Gb/s
Memory
G.SKILL Ripjaws V Series 16GB (2 x 8GB) 288-Pin DDR4 SDRAM D
Graphics Card(s)
2047MB NVIDIA GeForce GTX 1060 6GB (EVGA)
Sound Card
Motherboard Built in
Monitor(s) Displays
Acer R240HY bidx 23.8-Inch IPS HDMI DVI VGA (1920 x 1080) Wi
Screen Resolution
1920 x 1080
Hard Drives
1TB Sandisk SSD PLUS (Main drive)
500 GB Seagate 7200 RPM (Games)
500 GB Western Digital 7200 RPM (Virtual Machines)
PSU
CORSAIR TX Series TX650M 650W 80+ Gold Modular Power Supply
Case
CORSAIR CARBIDE SPEC-02 Mid-Tower Gaming Case, Red LED Fan
Cooling
220mm, two 120mm, and four 60mm fans
Keyboard
Wired Dell keyboard
Mouse
Wireless Logitech mouse
Internet Speed
250mb down, 30mb up
Antivirus
Panda Cloud Antivirus
Browser
Chrome-ish x64
Other Info
Your awesome for reading this.
Back
Top