Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Issues with dimensions of DOS BATCH file on my Windows 7

17 Jan 2014   #1
adi2012

Windows 7
 
 
Issues with dimensions of DOS BATCH file on my Windows 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



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


My System SpecsSystem Spec
.
17 Jan 2014   #2
matts6887

Windows 7 ultimate 64-bit
 
 

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 System SpecsSystem Spec
18 Jan 2014   #3
adi2012

Windows 7
 
 

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 System SpecsSystem Spec
.

18 Jan 2014   #4
andrew129260

Windows 10 Pro
 
 

Quote   Quote: Originally Posted by matts6887 View Post
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/24371...windows_7.html

@adi2012

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

https://stackoverflow.com/questions/...m-batch-script

How to change the size of the window in a batch file
My System SpecsSystem Spec
18 Jan 2014   #5
LMiller7

Windows 7 Pro 64 bit
 
 

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 System SpecsSystem Spec
18 Jan 2014   #6
andrew129260

Windows 10 Pro
 
 

@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 System SpecsSystem Spec
18 Jan 2014   #7
Alejandro85

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
18 Jan 2014   #8
matts6887

Windows 7 ultimate 64-bit
 
 

ok so maybe I was a bit off. Oh well. at least i tried
My System SpecsSystem Spec
18 Jan 2014   #9
LMiller7

Windows 7 Pro 64 bit
 
 

Quote:
@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 System SpecsSystem Spec
18 Jan 2014   #10
andrew129260

Windows 10 Pro
 
 

No problem, thank you.
My System SpecsSystem Spec
Reply

 Issues with dimensions of DOS BATCH file on my Windows 7




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
reading file in windows batch
i have a file b.txt with entries like : explorer.exe pid: 3136 type: File A24: D:\ftproot\logs\tagswap notepad.exe pid: 7732 type: File 18: D:\ftproot\logs\tagswap I want to read each record and extract pid and kill it. The following is only giving...
General Discussion
How to run a batch file at logoff & some batch scripting help please
Hiya, I'd just like to run a simple batch file at logoff to backup some settings. I plan to use Robocopy, which is what i use to more thorough backups. Two questions: 1. How make it run by clicking Start > Shutdown? (i realise i could make a shutdown batch file and run it instead, but i'd...
Backup and Restore
Issues with batch file to run MMC with elevated account
Hey all. I'm trying to create a batch file to run an MMC using an elevated account. I'm a novice when it comes to batch files, but this is what I have so far is: runas /user:domain\account "mmc C:\SuperConsole.msc" pause While I'm not including the domain or account info in this post, the...
General Discussion
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion
Is it possible to create a windows batch file to do this?
I generally run windows aero theme across all four monitors which i am happy with. However when i run a music app called cubase 5, i hear all sorts of squeaks and glitches when i simply move my cursor around the screen. The problem resolves itself when i switch to the standard windows classic...
General Discussion
Batch File Error Windows 7 x64
Hey Guys, Tried writing a batch file to open a few programs I use together regularly, but which I don't want all the time on startup. I've tried: start “Maxivista” /d “C:\Program Files\MaxiVista Pro Server\MaxiVistaAll.exe" start “Netbeans” /d "R:\Program Files\NetBeans...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 05:03.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App