Top "Dos" questions

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.

DOS: find a string, if found then run another script

I want to find a string in a file using DOS: For example find "string" status.txt And when it …

batch-file dos
How do I increment a DOS variable in a FOR /F loop?

I'm trying to read text lines from a file, and increment a counter so I can eventually simulate an array …

arrays dos
Commenting multiple lines in DOS batch file

I have written huge MS DOS Batch file. To test this batch file I need to execute some lines only …

batch-file comments dos
Close a running application from DOS command line

The start command can launch an application like notepad in a batch file like this: start notepad start "my love.…

command-line batch-file dos kill-process taskkill
Printing current date and time in DOS script

I have a script that prints the date and time followed by a string in a log. echo %DATE%_%TIME% …

date time dos
What ever happened to deltree, and what's its replacement?

In earlier versions of MS-DOS - I want to say version 7, but I could be wrong - there was a …

windows batch-file cmd dos
What is the at sign (@) in a batch file and what does it do?

One remotely familiar with windows/dos batch scripting will recognize this line: @echo off For many-many days, I was happy …

windows batch-file dos terminology at-sign
Command line to recursively delete files but excluding a certain file

I need to delete files of a certain type (.zip files, say) from a folder, and all of its sub-folders, …

command-line batch-file dos
batch find file extension

If I am iterating over each file using : @echo off FOR %%f IN (*\*.\**) DO ( echo %%f ) how could I print …

windows batch-file dos
Run Batch file as administrator - Windows 7 - Command "Run As" from network file system

I need to set up the delivery of a program installer. This program has a program_installer.exe and a …

shell batch-file cmd dos administration