EzDevInfo.com

ms-dos interview questions

Top ms-dos frequently asked interview questions

Does Windows still rely on MS-DOS?

I am just about to start an OS course and as an Apple user I am not very familiar with the underlying details of Windows OS. I was wondering, is MS DOS still used with Windows running on top or is ONLY Windows used now as the OS? I was a little confused because I read somewhere that MS-DOS is used for booting but Windows has all other OS capabilities built into it and thus is used for all other OS operations...


Source: (StackOverflow)

Can EXE always be replaced with COM?

Preview

Our antivirus software didn't allow me to copy an EXE file into my Windows 7 startup folder (calc.exe for example) since it's an EXE file

So I renamed it to a COM file and then copied it and it allowed it (very professional).

And of course - calc.com does work.

Which led me to ask (only for curiosity):

Question

When will an EXE program not run when renamed to COM ? Almost every exe file that I've checked worked.

I'd love to know the internals for why and why not.


Source: (StackOverflow)

Advertisements

How do I install MS-DOS 6.22 upgrade in a virtual machine without bootable DOS 6.0 installation media?

I am trying to create an MS-DOS 6.22 virtual machine in VMware.

I have MS-DOS 6.0 and the 6.22 upgrade from the MSDN subscriber downloads. In order to install the 6.22 upgrade, I have to install 6.0 first. The 6.22 download includes .IMG files from which I can boot, but the 6.0 download does not. I tried creating a bootable .ISO image from the 6.0 files, but that didn't work.

How do I install it?


Source: (StackOverflow)

How to list hardware in DOS?

I have a PC running MS-DOS (i.e. no Windows). How can I retrieve a list of all hardware present on the PC? Something like Everest for Windows, or something simpler, like lspci from Linux.


Source: (StackOverflow)

Equivalent of badblocks on Windows or DOS

Is there a utility in DOS or Windows that is as thorough as badblocks on Linux?


Source: (StackOverflow)

LAN connection - DOS to Windows 7

Hello community,

This is my problem:

I'm trying to connect a DOS-machine to a Windows 7 computer, using a LAN-crossover-cable - and it won't work.

I want to access a shared directory on the Windows-PC from the DOS-machine. Best solution would be to assign a drive-letter to the shared directory and make that persistent.

I've done this before we got new hardware, establishing that connection from the DOS-machine to a Windows XP computer worked just fine.

Using Windows 7 now, it won't.


Details

The Windows-PC

Running Windows 7 (Ultimate - or Professional, not sure right now) 64bit. There are two network cards in it, one for the logon via authentication server, internet and so on - and the second one only to build a connection to the DOS-Machine.

There is a separate local user specified, with name and password.

There is also a shared directory in C:\ with full acces rights to exactly that user.

(That's exactly what i did when using XP)

The DOS-machine

It's exactly that - a machine. Not a PC. It's a CNC machine with a special control software and so on. This control software is running on DOS and the network connections are built up via DOS, too.

I can't tell you which version of DOS - but scanning through the directorys i tend to say that this isn't some kind of "normal" DOS-version. Seems to be something "special" or "minimal", just to get the machine software running and providing basic things.

Using the mentioned XP-computer a while ago, i could use the NET commands to establish a connection using a drive letter, the shared network path - and the specified userdate, name and password.

That just worked. That so configured shared directory was visible and usable when running the machines control software - that's the goal of all this.


Current situation

Trying to build up the connection as i did before only results in the following error:

Error 53:

The computer specified in the network path cannot be located.

Explanation: The server that you specified does not exist or has not been startet.

...at least that's the error message when using the "GUI" the NET-command provides. When directly using NET USE ... the error code is the same, just the text message slightly different (...but basically saying the same).

As i'm not into networking that much, i have no idea what to do. There must have been some changes in the network protocols from XP to 7 - that's all i can say.

I've read something about a tweak using gpedit.msc and setting the "LAN Manager authentication level" to "Send LM & NTLM - use NTLMv2 session security if negotiated". Didn't do anything.

I've also read something about allowing "NetBIOS" on the network adapter on the Windows 7-PC, so i changed the advanced TCP/IP v4 settings - didn't do anything.

I've also stumbled upon an error on the DOS-machine - i can't use ping there. The command itself is somehow broken, instead of some appropriate message i only see undefinable characters on the screen. I don't know if that could have any influences on the network settings.

I didn't call the machine support by now - and i don't think i will. They are not very helpful with this network-issues, they weren't able to build up a working connection when we had XP (that's why i dit that by myself).

Plus, there is no useful documentation of the machine when it comes to that topics. Detailed informations simply doesn't exist - i've asked any possible adress for that, even the japanese manufacturer of the machine.



UPDATE,

16. Sept. 2013

I've tried to connect to the Windows 7-PC using net use x: \\hostname\\shared_dir - that's leading to the mentioned Error 53. I also tried that command with the option /PERSISTENT:YES, same error.

I've tried net view \\hostname, that raised Error 53, too.

I get the same error when trying the computers IP instead of \\hostname - both on net use ... and net view ...

The command ver displays:

PC DOS Version 6.3

Revision 0

...so there's no MS-DOS running on the machine. I don't know how important that is, when it comes to this network connection.

Rik managed to connect his old 486-machine (runnning MS-DOS 6.22) to a Windows 7-Computer, see his answer below. I followed his steps and configured both systems like he did (changes in gpedit.msc, adding the computer to LMHOSTS, configured a new user, ...), without success - i'm not even getting various error-codes, i'm stuck with Error 53.

I don't know if it's mandatory, but i changed the workgroup and the domain for the DOS-machine to match the Windows 7-PC. That wasn't the case before. It didn't help to get this working, but raise a new kind of error, when trying net view \\hostname:

Error 6118: The list of servers for this workgroup is currently not available.

Whatever that means.

I also tried to connect another computer to this Windows 7-PC, so i brought my Notebook (running Windows 7) and unplugged the DOS-machine.

I could get a working connection between those Windows-computers at the first try, just as this should work. Both computers can ping, view and connect to the other one, all fine.

By doing this, i recognized that the two windows-machines were only talking to each other using IPv6. I'm pretty sure that the DOS-machine can't handle this new protocol and even using the two Windows-PCs, this connection shouldn't require IPv6. So i disabled this protocol from the network adapter settings.

Result: ...i lost the connection. No PC was able to ping, view or connect to the other one, they just couldn't find each other anymore.

After enabling IPv6 again, everything worked just fine.

...i don't know why this Windows 7-computers need IPv6 to communicate. I don't think it's "good" that way, as this could cause a problem when trying to connect the DOS-machine.

I don't know what's happening there - and where to make changes to get IPv4 working.


The machine is in use most of the time (...Data is transferred using Floppy-Disks), but as soon as there's time for it, i'll try any helpful suggestion.


Last Update:

There is no more need to think about this problem. Thanks for anyone who helped me trying several things!

Just look at the date - it's been 2013 when i tried to solve this problem. Not long after fiddling around with various settings, i've been told that it's not my job to look after this issue.

I just wanted to help, but have been told to mind my own business - and so i did.

Of course, it's still not working.

Two month ago, i overheared a conversation about this topic. Someone seems to have recognized that this broken connection is really annoying and should be fixed. Until now, nothing has happened.

Floppy discs FTW.


Source: (StackOverflow)

How do I connect a 5 1/4" floppy drive to a modern PC?

This question was originally posted on Gaming Stack Exchange.

I have a small collection of 5 1/4" floppy disks (early Sierra games) that I am trying to read. How can I connect a drive that accepts these disks to my PC.


Source: (StackOverflow)

What is the MSDOS command line to check folder size?

I want to use the MSDOS command line to calculate the size of all the files in a folder and sub folder. I would normally do this by right clicking on the folder and clicking "Properties" but I want to be able to do it on the command line


Source: (StackOverflow)

How do I check a checkbox in DOS?

At a certain point during the installation of FreeDOS, one has to choose which optional packages to install. The packages selected by default are marked with Xs in their repective boxes. One then has to place Xs in the boxes of the unselected packages.

enter image description here

I do not know how to make the Xs in the boxes. I can move between boxes with the arrow keys, but cannot find any way to make an X. I have tried to type the X. I also tried SHIFT + X, to no avail.

Please help.


Source: (StackOverflow)

How to test if a program pi 16-Bit compatible?

I'm creating a GUI for soPDF written in Delphi, but I want to know if soPDF is 16-Bit compatible, because I need to run it in MS-DOS 6.22

Also, can I do this test with DOSBox?


Source: (StackOverflow)

Fullscreen digital clock for DOS 6.22?

I came across a Dolch L-Pac 586 a few months ago. My boss was going to throw it out, but I managed to convince him to let me give it a home. Since then, I've been wracking my brains, trying to think of a clever use for it. I have been thinking that it would be really awesome to get some sort of fullscreen digital clock program and just use it for a timekeeping device / conversational piece. (It's got an extremely sharp 9" screen - absolutely zero LCD rot.)

Anybody have any idea what I could use?


Source: (StackOverflow)

MS-DOS command to delete all files except one

Is there an MS-DOS command that allows me to delete all files except one?

Consider as an example the following files:

a.001  
a.002  
a.003  
a.exe  
a.c  

Is there a command to delete all files except a.c?


Source: (StackOverflow)

Is there a way to append files efficiently using the DOS copy command?

Using the DOS copy command syntax to concatenate files:

copy file1.txt+file2.txt all.txt

I know I can do this...

copy file1.txt+file2.txt file1.txt

Is this efficient? Is it doing what I'm expecting? It works, but I want to know is it actually appending to file1.txt or is it copying file1.txt (bad), concatenating file2 and then renaming to file1.txt (which is not efficient)?


Source: (StackOverflow)

Do you have to install DOS 6.22 before installing Windows 3.0?

I've been tasked with creating a VM with Windows 3.0 and Office 3.0 on it. I have the install disks for Windows and Office but not for DOS. Do I need to have DOS installed first to install Windows 3.1?


Source: (StackOverflow)

How to install MSDOS from floppy to harddrive?

I have a bootable MSDos system. I would like to install it on the current PC so that I can boot from HDD instead of Floppy. How can I do that?

I am doing this in virtualbox, but a general solution would be nice.


Source: (StackOverflow)