MS-DOS was the most popular operating system for desktop PCs until the mid-1990s. Do not use this tag for questions about Windows command line programs or scripts.

learn more… | top users | synonyms

0
votes
1answer
30 views

How can I restore my Windows system after the PC is booted into DOS from USB drive?

My PC with Windows Vista failed to boot. The screen showed that the boot device was not found. I think the boot area of the hard drive was damaged. Then I created a boot USB drive with DOS system, and ...
1
vote
2answers
38 views

How to get latest version string from a collection of folder where folder name is version string

for folder structure like below RootFolder | |--1.2.3 |--1.2.4 |--2.1.3 ... ... ... Under RootFolder, there are a collection of folders, and they all named with ...
0
votes
1answer
22 views

Is there a similar command like COLOR in MS-DOS?

MS-DOS 6.22 is running. Who needs Windows 10? I know that upon starting there is a possibility to change the foreground and background color of the MS-DOS environment. But is this also possible when ...
0
votes
0answers
13 views

How to check if a flash drive has been unplugged?

I'm booting FreeDOS (C:\) and then use ISOLINUX to load some stuff into the RAM (A:\). DOS is then being booted and has access to the memory drive. AUTOEXEC.BAT then switches to the memory drive and ...
2
votes
3answers
60 views

How to load an ISO file into RAM and boot MS-DOS from it?

I don't have much experience in doing this, so I'm here to ask for help. My problem is: I want to load an ISO into my RAM from an USB flash drive. Included in that ISO should be a running MS-DOS ...
-2
votes
1answer
26 views

Concerning terminal pagers

more < doc.txt I understand that the above command will display the contents of the doc.txt file until it fills up the screen. I can, then, go down one line at a time with the arrow keys or keep ...
0
votes
0answers
70 views

How Can One change the MS-DOS prompt font color?

How Can One change the MS-DOS prompt font color? MS-DOS is really old, and being the grandpappy of the computers it is really hard to find support for it. I have these tried suggestions from ...
2
votes
4answers
76 views

How To Format A Disk Image To Be Recognized By MS-DOS?

I'm trying to emulate windows with bochs on my android device. I've got the following drives: an empty disk image to install windows on, a virtual vvfat drive with the setup files, and a cdrom drive ...
1
vote
2answers
32 views

Powershell: Dir /s - Remove Repeated Folders

Situation: In Powershell, I'm using: $folders = dir -s C:\Users\Name\Downloads\*.ttf | Select Directory foreach ($folder in $folders) { echo $folder } To display folders whose contents ...
1
vote
1answer
74 views

How to omit characters at the beginning of a file name while renaming it in DOS?

I would like to know how to omit the first character of a file name while renaming the file in DOS. In my case I have bunch of files like: #test1.txt #test2.txt #test3.txt #test4.txt #test5.txt I ...
0
votes
1answer
28 views

Ms-dos 6.22 not letting me save a file via edit program

I can't seem to save a file from the edit command on MS-DOS I have 3 directories: A B R I am running MS-DOS from VirtualBox (Could this be affecting it?) When I attempt to save the file on the A ...
1
vote
0answers
23 views

DOS unformat memory issues

When I try to format an MSDOS 6.22 FAT16 partition (for restoration reasons, even with 3 AV installed, I get LOTS of virii), it goes about its business until UNFORMAT data is created. It says: ...
3
votes
2answers
39 views

Get the first few characters without the extension of the file in DOS

My files are AAAAAAA-01.pdf , BBBBBB-02.pdf, CCCCCCC-03.pdf I was able to generate an excel list of file name in the folder without the extension using this command below: for %%i in (*.pdf) do @echo ...
1
vote
1answer
44 views

How do I use a for loop and output to a different directory

usage: pdftotext [options] <PDF-file> [<text-file>] I'm using pdftotext (xpft, usage above) to covert all pdfs in a directory (and subdirectories) to textfiles. It doesn't matter if ...
2
votes
1answer
68 views

What files are needed for a bootable DOS floppy disk?

I just made a bootable DOS floppy disk in Windows Vista, but the files are taking too much space. I need more space to store a flash utility program and a ROM file. What files can I safely remove and ...
0
votes
1answer
30 views

How to run program in background and cater for scenario where window is closed?

To run program in background I use : START /B my.exe But when I close the command line the process ceases to run. How can run program in background from command line and continue to run if command ...
-6
votes
1answer
87 views

How to make GUI in DOS? [closed]

I want to make a GUI (Graphical User Interface) for DOS to complete my project. However, i don't know to make one. I do not want it to be text based. I want it to be a true GUI like this one: ...
0
votes
1answer
135 views

Network printing in FreeDOS (VirtualBox) to a Shared Windows Printer?

I have a scenario with a printer on a Windows 8 machine that needs to be shared to a FreeDOS instance that is running on same said machine via VirtualBox. Initially I'd hoped that there was a printer ...
2
votes
0answers
129 views

How to create a bootable HDD DOS partition [closed]

There is a desktop with Windows7 that has no CD-ROM. The FAT32 partition was created with 100Mb (Megabytes) of space. When computer starts, I would like to be able to boot in MS-DOS or so (no Windows, ...
1
vote
2answers
327 views

findstr DOS Command's multiple string argument

findstr /v "black" File1.txt Above DOS command will display content of 'File1.txt' which are not matching string "black". How to modify this command , if I need to filter words "black" and "white" ...
1
vote
2answers
113 views

Can I make a DOSBox like, in Virtual Box

My idea is make a DOSBox like with virtualbox and FreeDOS (or MS-DOS). Is it possible? Only need install DOS in virtual box, or need something else? Can FreeDOS have a GUI for open, per example, ...
0
votes
0answers
14 views

how to run kill command in windows from batch file without Right-Click selection [duplicate]

I am trying to embed a DOS command in my tomcat batch file. the command is `taskkill /f /im java.exe I want to embed this into tomcat's shutdown batch file. Without right-clicking and running the ...
0
votes
1answer
41 views

Appending an extension to a new file created with xcopy

I've been having problems with xcopy in the past few days, and I'd like to stop ripping out my hair. In my DOS class, a portion of an assignment requires a file to be copied (with xcopy), and the new ...
0
votes
1answer
40 views

Is it possible to filter attribute of dos command output?

Below is output of this command netsh interface ipv4 show interface ...
0
votes
1answer
71 views

Remove timestamp from filename

I need to rename files generated automatically, truncating a timestamp at the end. Files are named "abcd_efgh_jklm_21.04.2015.csv", with the numbers being today's date in german culture spelling and ...
0
votes
1answer
65 views

MS DOS: how to unattendedly write specific byte on specific address on HDD, e.g.: write(000F3,FF) [closed]

How can I perform direct, low level writing to the hard drive under MS DOS in an unattended way? Specifically, I need to write to bytes on the MBR, but at the byte level, so FDISK, RPM, etc. won't do. ...
0
votes
1answer
112 views

how to run DOSBox in command line without opening it in a new window

how to run DOSBox using the default windows command line, (without opening it in a new window), editing the source code of DOSBox is a solution, but i want to know if there is no other solution before ...
0
votes
1answer
30 views

Create windows sybmolic link shortcut

Can a Windows synonym shortcut be created so that the location "/home/" maps to "c:\" drive ? Another way, if I navigate via DOS to "/home/" then "c:/" drive is navigation target. Note : I'm not ...
0
votes
0answers
30 views

Can I stretch a Remote Desktop session to fill up the entire screen?

I have MS DOS 6.2 installed on a virtual box. Within the virtual box settings I have Remote Desktop enabled as a display output. The host machine is running Linux Mint 17. I access the DOS machine ...
0
votes
2answers
50 views

Preference of COM2 vs COM1

I have a vague recollection from way back when that there was some kind of recommendation that one should connect ones modem to COM2 rather than any other COM port. I even more vaguelly recall that ...
1
vote
2answers
78 views

Mounting an old DOS harddrive on Linux

I'm trying to mount an old harddrive from a mid 90's 486 for file recovery. The harddrive (Matrox 7850 AV) is identified correctly by the motherboard (Asus P5QL PRO), but it can't be mounted in Slacko ...
0
votes
1answer
206 views

How to get count of files in directory using command,exe in c# app

I want to use the Process class to execute a command.exe method to return the number of files in a parent directory. It has to be using the command.exe (various reasons). This is my code: ...
1
vote
1answer
52 views

FreeDOS invalid syntax for /f

I got a script that uses for /f in Windows. However, FreeDOS doesn't seem to support the syntax /f and it is only supported in Windows emulated cmd. for /f "tokens=4" %%i in ('all.bat') do set ...
1
vote
1answer
361 views

Directory Listing includes Date Modified, File Size into text file/excel file

I wanna try listing an entire drive's (Z:) directories, subdirectories, and files in a single text file with all the dates and the file sizes. And then will open the .txt file on an Excel worksheet. ...
-3
votes
1answer
68 views

Create an MS-DOS disk

I want to make a bootable MS-DOS CD/DVD or floppy (not download it from other sites, I am sorry but I do not trust them). I currently only own an old pc with windows 98. I also want this CD or floppy ...
0
votes
1answer
38 views

Files accessibles on MS-DOS, absent on Windows explorer, how to get them?

I have USB Drive that contains interesting files. When I acces it using Windows Explorer, I get only a bunch of *.tmp files. But when I acces it using MS-DOS, I can get to my precious directory ...
0
votes
1answer
63 views

run all batch scripts in all subdirectories

I want to run all x.bat automatically in all recursive sub directories: C:\test | +---folder1 | x.bat | +---folder2 | x.bat | +---folder3 . x.bat . .----foldern ...
0
votes
0answers
14 views

How to install Windows 7 on my laptop? It has MS DOS installed in it by default [duplicate]

i have bought a new HP notebook. it has MS-DOS installed in it by default. Now i want to install Windows 7 in it. Is it possible to install WIN7 on it? If yes then please let me know the procedure. ...
0
votes
2answers
154 views

Get the location of httpd.exe in CMD

When we start the Apache in windows machine httpd.exe start its process.Now we can determine if httpd.exe process is running or not using this command: query process httpd.exe This will return ...
1
vote
1answer
104 views

Copy files to different location created one hour Ago [duplicate]

I want to create one batch file to copy files from one location to another which are created one hour Ago. I tried to use xcopy /d but it does not accept time. Can you please suggest. thanks.
-2
votes
1answer
49 views

DOS command-line query returns too many results

Can anyone tell me why dir *.asp returns all .asp files but also all .aspx files? It seems dir ignores extensions longer than three. This is really bugging.
0
votes
1answer
106 views

How can I paste the copied file in working directory using cmd?

I want to paste a copied file to current working directory using cmd. like cmd> paste filename not like cmd> copy source destination Can this be done?
0
votes
1answer
72 views

Can't open ms-dos on Windows 8? [closed]

So on Windows XP or 7, I can make a shortcut called "command.com" on the desktop, and when opened, it opens a box almost identical to command prompt that is titled "MS-DOS". This feature doesn't work ...
0
votes
0answers
33 views

What is this application build in

I got one exe ( TAS ) and many other files with .RUN, .K, .M Extensions what are those extensions. Is this application build using Foxpro ( which i dont think so ), VC++, C++ or Any dos based ...
0
votes
3answers
72 views

Cannot change directory with cd in DOS using Win7

I would like to change my Present Working Directory in DOS (I am running Win7 professionnal). When I perform a cd D:\, nothing happens: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 ...
0
votes
0answers
53 views

Windows Script Host

My batch file runs on my PC, but when I run it on the server, it calls the Windows Script Host (WSH) which seems to hang the process. There are no settings for the WSH. when I kill the WSH my batch ...
2
votes
5answers
19k views

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 ...
1
vote
1answer
140 views

Can a computer that uses EFI/UEFI rather than BIOS run a real mode OS?

Title says it all: could I get away with installing a real mode OS such as MS-DOS on a EFI-based computer? I understand that EFI-based computers still use "BIOS emulation" for compatibility reasons, ...
-1
votes
1answer
152 views

What is the differences between MS DOS & Powershell in Windows? [closed]

What makes them differ from each other? I was just experimenting with MS DOS, and then found Powershell. Can't figure out why Microsoft gave them.
0
votes
1answer
61 views

Virtual PC running MS-DOS 6.22 cannot boot SEAL GUI

I just don't understand this. I just don't know why SEAL doesn't work... :( Here is the error: