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

1
vote
2answers
14 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" ...
0
votes
2answers
30 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, ...
2
votes
2answers
17 views

Using notepad++ command line commands

I am trying to use the -l parameter in a notepad++ command line to open a file and have the highlighting be set to highlight for C++. I typed in the command: notepad++ -lC++ file.cpp For some ...
0
votes
0answers
13 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
16 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
14 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
34 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
50 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
0answers
15 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
29 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
20 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
28 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
57 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
129 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
41 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
194 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
62 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
35 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
36 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
91 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
69 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
36 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
66 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
43 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
30 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
57 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
40 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 ...
1
vote
4answers
6k 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
107 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
109 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
0answers
41 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:
2
votes
3answers
132 views

Backing up and Restoring DOS era backups

I have backup files that were made in DOS. They contain many hundreds of hours of work, and unfortunately they're locked away in a format that cannot be opened by anything in the format they are now. ...
1
vote
1answer
99 views

DOS command to remove file_001.* copies, but only if file.* exists

I have a tree of directories containing files and sometime a copy at the same location. This copy is identified by some string, e.g. _001, appended to the original file name. somefile.txt and ...
0
votes
1answer
238 views

Batch file XCOPY cannot find existing directory

I'm writing a small batch file to copy my C# project to another drive. I'm using XCOPY to copy an entire folder (We have some XP machines still, so robocopy isn't an option). However, when I run the ...
-1
votes
1answer
68 views

How are .exe files managed in windows? [closed]

I have a project I am currently working on that involves trying to add MS-DOS functionality to Android 4.1.2 KitKat, also allowing .exe files to be executed. I only have one problem: I cannot seem to ...
0
votes
1answer
60 views

How do you copy files using a command line when you the file has four or less characters in the filename?

trying to copy files with four or less characters in the file name with a certain extension to a new folder. I tried to do this for several hours now! getting frustrated. I used the copy command and ...
4
votes
2answers
109 views

How to show refresh rate of monitor in MS-DOS Version 6.22

I was forwarded from Stackoverflow to ask this question here. I am running a psych experiment on an old MS-DOS computer. When I ran the experiment on a different computer that is split via a switch ...
-2
votes
1answer
63 views

Larger MS-DOS Img file?

I am making an operating system based on ms-dos and using a program called win image to edit an ms-dos .img file, the program only lets me inject at total size of 2.88mb worth of files and i would ...
4
votes
2answers
880 views

Install a CD-ROM driver on MS-DOS

I have an old MS-DOS computer that I am experimenting with. The computer has an AMD 80386 processor, 1664 KB of RAM, a 50 MB hard drive, and two floppy disk drives: one 3 1/2 inch, the other 5 1/4 ...
1
vote
1answer
189 views

Install C++ compiler on old MS-DOS computer with floppies

I have an old MS-DOS computer that I am experimenting with. The computer has an AMD 80386 processor, 1664 KB of RAM, a 50 MB hard drive, and two floppy disk drives: one 3 1/2 inch, the other 5 1/4 ...
0
votes
2answers
251 views

Installing Ye Olde DOOM on DOS with Ye Olde Floppy Discs

I'm trying to install DOOM (the shareware version) on my old Compaq running Windows 3.11. I've got the files deice.exe dooms_19.1 dooms_19.2 dooms_19.dat install.bat all downloaded and I have a ...
2
votes
2answers
81 views

copy /a, copy /b - use of this options

On Microsof Windows Server 2008 (R1), 32-Bit, I have some trouble understanding the use of as well as the difference between copy /a and copy /b The Technet Article on copy doesn't help me much: ...
0
votes
3answers
56 views

How to add file extension to the files which do not have an extension in a specific folder using Windows command prompt?

I have folder (say c:\folder) in which many files reside. All of them are HTML documents. But some of them have not .html extension. I want to add them .html file extension using command prompt at ...
4
votes
2answers
743 views

DOS Copy command to multiple folders

I want to copy a file from one folder to another folder which has many sub-folders. Using MS-DOS command, how can I copy this file to all sub-folders. Can any one please help me on this? Eg. I have a ...
0
votes
1answer
18 views

Check if an user has given as an input 1 or more then 1 in an batch file

I am having an question with an Batch file Is it possible to let an user choose how many files it will enter? For example set /p count=Enter the number of files you are willing to set: IF %count% ...
1
vote
1answer
185 views

How can I share MS-DOS application between two computers?

With remote desktop applications like Teamviewer, logmein, vnc, etc... I can share my desktop and specific applications / windows to the other PC that I have, but my problem is that I have an old ...
0
votes
2answers
1k views

Fix MS-DOS MBR Without DOS Boot Disk

How can I restore the MBR for MS-DOS without having an MS-DOS boot disk or floppy drive. Ideally, I would like to be able to do this from a Windows 7 Win PE disk. The only solutions I've found online ...
0
votes
1answer
120 views

The echo command on windows CMD ask me if I want more

I was trying to echo something in the Windows command prompt (cmd.exe), I entered the following input : echo ^.^ And noticed that every time I'm passing a string which finish with a "^", it will ...
0
votes
2answers
616 views

Copying files that match one pattern but not another

I have a number of files that follow a pattern like this: <BaseName> . <Version> [ - <Tag> - <#> ] . <Extension> For example: basename.1.0.0.ext ...