Questions tagged [dos]

A family of disk-based operating systems (Disk Operating System) for mainframes and minicomputers in the 1960s and 1970s, and subsequently IBM PCs and compatibles of the 1980s and 1990s, including MS-DOS. DO NOT USE THIS TAG FOR QUESTIONS ABOUT THE WINDOWS COMMAND PROMPT! Instead, use the [windows], [batch-file], [windows-console], and/or [cmd] tags. For questions about denial-of-service (DoS) attacks, use [denial-of-service].

DOS (Disk Operating System) is a generic name for the simplest possible operating system that can handle a disk. Examples abound from the 1950s onwards, from all major manufacturers. IBM and Digital Equipment Corporation (among others) supplied a DOS as a bootstrap operating system used to generate larger ones.

The best known and most commonly used examples of DOS are for the IBM PCs and compatibles of the 1980s and 1990s. Members of this family include Microsoft's MS-DOS, IBM's PC-DOS, Digital Research's DR-DOS, Novell DOS, FreeDOS, and others.

Between enthusiasts and legacy environments, there remains a high level of interest in MS-DOS systems and applications, whether running on real vintage hardware or under a virtual machine such as DOSBox. Programming questions about DOS are on-topic for Stack Overflow. Other types of questions should be directed to Retrocomputing.

Early consumer versions of Windows (1.x, 2.x, 3.x, the 9x series, up to Windows Millennium) were built atop of or partially based upon MS-DOS. Windows NT, Windows XP, and later do not use MS-DOS. Since modern versions of Windows are not based on DOS, questions about the Windows command prompt and batch scripts should not use this tag. Instead, use the tags , , , and/or .

Another common usage of this acronym is for denial-of-service attacks. This is generally spelled with a lowercase "o" (DoS), and is not related to the operating system DOS. For these questions, use the tag . A tag also exists for distributed denial-of-service attacks.

2768 questions
1
vote
1 answer

(MS-DOS, BATCH FILES) How to write to a log file, keeping only the first 1000 recent rows

In Windows Server 2003 environment we have a batch file (*.bat) which writes to text log file in a certain directory. To prevent from this file to become too big, I would like to know how could I modify the batch file in order to keep only the first…
UltraCommit
  • 2,236
  • 7
  • 43
  • 61
1
vote
1 answer

DOS FOR loop - Can I use an entire word as a delimiter (multi-character-delimiter)

I have a source file that would look something like this: Name SerialNumber \\.\PHYSICALDRIVE1 000000002027612 \\.\PHYSICALDRIVE0 000000002027476 \\.\PHYSICALDRIVE2 00000000202746E \\.\PHYSICALDRIVE3 00000000202760E…
LabRat
  • 237
  • 3
  • 4
  • 14
1
vote
4 answers

Batch renaming replace with part of the original file name DOS and Bash

I know this has been covered many times, but i still can't seem to get a good solution to this particular aspect. I have the same problem in both bash and DOS. I have a file of many .csv files named abcYYMMDDf.csv and I want to change the file…
1
vote
2 answers

Resource allocation by Plug-and-Play BIOS

Plug-and-Play BIOS spec says that if you have a PnP BIOS, it can configure the hardware. This means that your BIOS reads the resource requirements of all devices and configures them (allocates bus-resources to them). Does a PnP always allocate…
jacks
  • 294
  • 3
  • 15
1
vote
1 answer

DOS batch argument substring in one line

I have a batch file with the following 2 lines and change them into one line of code: set arg=%1% "C:\Program Files\TextPad 6\TextPad.exe" -u "D:\www\%arg:~14,-1%" The context is that I'm using a webpage url-handler as described…
Redzarf
  • 2,578
  • 4
  • 30
  • 40
1
vote
2 answers

Can not open a JVM which is opened using a batch which is opened using another batch

I am trying to open a batch file which is opened by another batch file which is supposed to start a JVM but when I try to open it all I get is a cmd prompt with path to my desktop in it. This is the content of the batch file I use to open the JVM.…
1
vote
1 answer

how to batch replace the files in a directory windows vista(from .txt.txt to .txt)

I have a couple of flat files(.txt) in a directory.all those files are in the format *.txt.txt so i want to rename it to *.txt ?Is there any simple way to rename all together? when I tried ren *.txt.txt *.txt is is not working Any experts please…
user1254579
  • 3,901
  • 21
  • 65
  • 104
1
vote
1 answer

Paperclip/ImageMagick problems on Windows

I managed to implement a rounded-corners post-process on my avatars. It works fine on my Mac, but no dice on Windows. it looks like so def self.convert_options(px = 10) trans = "" trans << " \\( +clone -alpha extract " trans << "-draw 'fill…
huwman
  • 86
  • 7
1
vote
2 answers

MS DOS commandline output redirection to file produces no ouput

Consider the two scenarios a)shutdown output redirection and b)Rscript output redirection to file out.txt The output as seen in STDOUT in both scenarios, fails to get redirected to file out.txt only in scenario b. Am I missing something here or is…
useR
  • 23
  • 5
1
vote
1 answer

Nesting String Manipulations in DOS

I know you can use string manipulation in DOS like this: echo %TIME% echo %TIME:~0,2% echo %TIME: =0% The output of these three commands would be: 8:36:05.60 8 08:36:12.93 I want to know how to combine the second and third lines to get this…
Brian
  • 1,201
  • 2
  • 14
  • 26
1
vote
1 answer

In Batch: Read only the folder file name from a directory

I have the following batch script to print all the folders under a directory for /d %X in (c:\web\*) do echo %X and it prints out c:\web\folder1 c:\web\folder2 .... Can i change the batch script and remove the path and only prints out folder…
windforceus
  • 193
  • 2
  • 4
  • 16
1
vote
2 answers

DOS Copy File up multiple directories

I can't figure out how to copy a file in Windows Dos up multiple directories. Basically I want to replicate this linux command for windows cp ../../../Dir/Item.o Item.o Basically I need to copy an item that is up 3 folders from a folder called "Dir"…
jecjackal
  • 1,407
  • 2
  • 20
  • 35
1
vote
2 answers

How to send a Y keystroke to dos command with a [YN} answer?

I am using the deltree command which expects the user to confirm with a Y or N. I tried 'echo Y | deltree ....' but got a "The process tried to write to a nonexistent pipe" error. Is there another way?
Tony_Henrich
  • 42,411
  • 75
  • 239
  • 374
1
vote
3 answers

How to separate batch args by comma?

I want to write a batch that receive args and runs something like: runmyexe.batch ============== myexe.exe %1, %2, %3 Each of my args is surrounded by quotes (because it is a path to a file that might contain spaces, like C:\Program…
ILK
  • 31
  • 2
1
vote
2 answers

FIND function in MS DOS

Is it possible to use the find function to search a folder and return the names of files that have any of a collection of strings For example, search a folder and return and files with the text 'Michael', 'Alan', 'Ben' etc.
Michaelb88
  • 151
  • 2
  • 6
  • 14
1 2 3
99
100