The World of DOS - Subject Index and Links

Introduction(1)
History(1)
DOS/Win3.11/95/98 vs. NT/ME/XP/2000(1)
Command Index(1)
Navigating DOS(2)
Tips and Tricks(2)
Network/Harware Utilities(3)
How to make and use bootable floppy disks(3)
Batch Files(4)
Creating Batch Files(4)
Batch file utilities and commands(4)
The AUTOEXEC.BAT file(4)
Types of Batch and System Files(4)
Parameters in batch files(4)
Batch File Library(5)
Subject Index(5)
Helpful DOS Links(5)

I want a batch file that will...

Check to see if a file exits(or doesn't exist)
Create an index file of a directory
Create a script of the command line
Create and write to a Word document
Create a list of every directory and file on a computer
Delete files from a directory
Display a menu of selections
Log into an FTP site and grab a file
Look for a word in a file
Open an external program
Unzip a file
Simtel.Net Library
chebucto.ns.ca: Advanced Batch Files

--------------------------------------------------------------
Create a list of every directory and file on a computer
@ECHO OFF
TREE C: /F /A > tree.txt
CLS
EXIT
--------------------------------------------------------------
Check to see if a file exits(or doesn't exist)

@ECHO OFF
IF EXIST C:\temp\file.txt MOVE C:\temp\file.txt C:\file.txt

IF NOT EXIST C:\temp\file.txt COPY C:\file.txt C:\temp\file.txt
CLS
EXIT
--------------------------------------------------------------
Create an index file of a directory

@ECHO OFF

DIR /B C:\windows > windows_index.txt

CLS
toplinks.js"> EXIT
--------------------------------------------------------------
Create and write to a Word document

@ECHO OFF

ECHO John Smith >> letter.doc
ECHO 32 Main Street >> letter.doc
ECHO Centerville, OH >> letter.doc
ECHO. >> letter.doc
ECHO Dear, Mr. Smith >> letter.doc
ECHO. >> letter.doc
ECHO This is a letter. >> letter.doc
ECHO. >> letter.doc

CLS
EXIT
--------------------------------------------------------------
Delete files from a directory

@ECHO OFF

DELTREE /Y C:\WINDOWS\TEMP\*.*

CLS
EXIT
--------------------------------------------------------------
Look for a word in a file

@ECHO OFF

FIND "hello" C:\windows\hello.txt

CLS
EXIT
--------------------------------------------------------------
Using winzip
CALL wzunzip.exe -yb archive.zip c:\archive\

Opens "archive.zip" and puts the contents in "c:\archive\". You need the full licensed version and the command line module: wzcline.exe


Subject Index

A-B-C-D-E F-G-H-I-J K-L-M-N-O P-Q-R-S-T U-V-W-X-Y-Z- Symbols and Special Characters



---A---

ACCOUNTS
ANSI.SYS
APPEND
ASSIGN
ASSOC
AT
ATTRIB
Autoexec
    

---B---

BACKUP
Boot disks
BREAK
BUFFERS

---C---

CACLS
CALL
CD and CHDIR
CHCP
CHKDSK
CHKNTFS
CHOICE
CLS
CMD
.com files
Commands, list of
command line switches
COLOR
COMP
COMPACT
COMPUTER
COMMAND
CONFIG
CONFIG SERVER
CONFIG WORKSTATION
CONVERT
COPY
COUNTRY
CTTY
    

---D---

DATE
BLSPACE.EXE
DEBUG
DEFRAG
DEL
DELOLDOS
DELTREE
DEVICE
DEVICEHIGH
DIR
DISKCOMP
DISKCOPY
DISPLAY.SYS
DOS
DOSKEY
DOSHELP
DRIVER.SYS
DRIVPARM

---E---

ECHO
EDIT
EDLIN
ENDLOCAL
EGA.SYS
EMM386/EMM386.EXE
ERASE
EXE2BIN
EXIT
EXPAND
    

---F---

FASTHELP
FASTOPEN
FC
FCBS
FDISK
FILE
FILES
FOR...IN...DO
FORMAT
FIND
FINDSTR
FTP
FTYP

---G---

GOTO
GRAFTABL
GRAPHICS
GROUP
    

---H---

HELP and ?
HELPMSG
HELP SERVICES
HELP SYNTAX
HIMEM.SYS

---I---

INCLUDE
IF, IF EXIST, and IF NOT EXIST
INTERLNK
INTERSVR
INSTALL
IPCONFIG
    

---J---

JOIN

---K---

KEYB
    

---L---

LABEL
LASTDRIVE
LOADFIX
LOADHIGH OR LH
LOCALGROUP
LPT1
LPT2
LPT3

---M---

MEM
MEMMAKER
MENUCOLR
MENUDEFAULT
MKDIR and MD
MODE
MORE
MOVE
MSAV
MSCDEX
MIRROR
MSBACKUP
MSD
    

---N---

NAME
Navigating DOS
NET
NETSTAT
NUMLOCK
NLSFUNC
NSLOOKUP

---O---

---P---

PATH
Parameters in batch files
PAUSE
PING
POPD
POWER
PRINT
Printing:
    with PRINT
    LPT
    PRN
    printing text files with TYPE
    sending text to a network printer
PROMPT
PUSHD
    

---Q---

QBASIC

---R---

RAMDRIVE.SYS
REM
RECOVER
REGEDIT
REN or RENAME
Rename a file:
    REN
    COPY
    MOVE
REPLACE
RESTORE
RMDIR or RD
ROUTE
    

---S---

SCANDISK
SEND
SESSION
SET
SETLOCAL
SETVER
SHARE
SHELL
SHIFT
SMARTDRV and SMARTDRV.EXE
SORT
STACKS
START
STATISTICS
STOP
SUBMENU
SUBST
SWAPDISK
SYS

---T---

TELNET
TIME
TITLE
TRACERT
TREE
TYPE
    

---U---

UNDELETE
UNFORMAT
USE
USER

---V---

VER
VERIFY
VIEW
VOL
VSAFE
    

---W---

WIN
WINIPCONFIG

---X---

XCOPY
    

---Y---

---Z---



    

-Symbols and Special Characters-

~ Tilde
@ At
$ Dollar sign
% Mod
^ Caret: escape and continuation character
* Wildcard
| Pipe
> Output, append
>> Output, overwrite
? Help
/ Switch
+ Plus
- Minus or Hyphen

Batch File Developement Programs

visualcron.com: executes commands and .bat files at a given time or interval. Free

octosoft.co.uk: 'Easy Batch Builder'

Helpful Links

Bootdisk.com
Exploring MS-DOS
DOS & ENVIRONMENT ROUTINES
dmoz.org Open Directory Project: DOS Batch
undocumented and obscure features in various MS-DOS versions
DOS - Commands
ka.net/jmenees/Dos
FileGate Archive Bfds: Batch file programming
Batch File Reference
An A-Z Index of the Windows NT/XP command line
DOS Commands and Related Info
MS-DOS: Windows Command Environment
Information and help with Microsoft DOS
DOS Forum at Computing.net
The History of DOS
History Of DOS
DOS (Disk Operating System)
THE HISTORY OF DOS
oldfiles.org.uk
DOS Forever
Manipulating the Windows Clipboard with DOS
What is DOS?
Russell D. Hoffman's Unauthorized and Unsanctioned Net Guide to DOS
Use DOS on Linux
DOS Documentation
How to use DOS to fix the master boot record
merlyn.demon.co.uk
Shell Scripts on the PC
Windows 95 / DOS 7 Batch Programming
INFORMATION ON BATCH FILES
Converting DOS Batch Files to Shell Scripts
DOS batch files
gatsby.tafe.tas.edu.au/batch/index.htm
fp.computers.pcc.edu/pmcg/Prereq_class_notes.htm
www.butterwick0.freeserve.co.uk/tutor/menu.html
www.tutorgig.com/showurls.jsp