Technically, DOS provides just eight basic batch file commands -- CALL, ECHO, FOR, GOTO, IF, PAUSE, REM, and SHIFT -- plus a tiny assortment of miscellaneous doodads: replaceable parameters, environment variables, labels, double == signs, and @ signs. That's it! Not too much to learn, even for the most fervent DOS-hater. But the tools these few commands can create will astonish you.
The quickest way to learn the "doings" and syntax for each of the commands is too use MS-DOS's HELP program. Want to check out CALL? Type either
CALL /? or HELP CALL
at the prompt and DOS will display either a few lines of help (CALL /?) or open up its reference database (HELP CALL) with examples and usage syntax.PC Computing - DOS Power Tools by Paul Somerson
Limited though it may seem to some, other people perform magic using DOS' batch language without "extensions".
Take a look at the tips and examples presented on these pages and in the links to other sites, and see for yourself that batch files are more powerful and versatile than you had ever thought possible.
Wherever "DOS" is referred to, MS-DOS 5 or any later version,
including the COMMAND sessions of Windows NT and OS/2, is meant.
When "NT" is referred to, Windows NT 4 is meant, unless
specifically stated otherwise. As far as I know most NT 4
commands work in Windows 2000. Where Windows 2000 has some additional
functionality, the added options will be shown in magenta.
When "OS/2" is referred to, OS/2 Warp 3 or later is meant.
Windows NT 4 / 2000 / XP users, you can use AllHelp.bat to generate a list of commands available in your operating system (and in the language of your OS, as is demonstrated in these English, German and Dutch pages.
The main focus of this site will be on COMMAND.COM's and CMD.EXE's
internal commands and on undocumented features and unusual use of
features.
On magic, more or less.
I'm always open to new tips and suggestions.
If you see a DOS version mentioned as a minimum requirement,
remember that I do not have access to every DOS version, so I
cannot and did not test every feature in every DOS version.
If you do find an error here, or if you know of any useful
"hidden feature" of any Intel based operating system that you
would like to share, please let me know
(
BX 8H8 UZPUKTM WT TK 8T
EM F5HR BN5WW53BUPFY Y3 MN 85
UK 5HZF KDXB WT YF DY
WK FDD HU3 WN 58 KN
PY TM H35Y XVTBVT D33T HY PMV Z5 8P TX YW8 YYEE PD VBUB 5P MB TWZF8D VY UMDE 3WPT 3U 5D8D RB X3Y PX T NV UYDB FT 5D DMWX EB WNBM RXH3 PMDD TU VD3X TTUD
TR EWV8PRF3 NN8PNT WTHFDEPB VZ URWPRB BY 3RU HZXX83 E5E5VEUT EWW8NPUR W5 8Y PVTMXFPKY KVZBDMMH MZ8DUETX HHB5F8ZH ZHWFUH Y3 3XK 8M YTHTDP3E X5 H8 KHPBYMWZ NHX3YWMN EFMNY5K XNRYREDW MKTRRTD M3MHUX
RV 5NY WHV EV VT DF VV 88H UMM ZU MDX 38 ZK ZYK BZ XK XU UE MZ KXB VYR 5W XD3 X8 MR RY5 K FUM 5 HK DM W3 EF UR ZX5 KT BU BU TRZ VT ZM H8B XPM 8H
3P XY NZ 3P NM B3 TU XP R3 3N RH NR D5 H8 3F 3K F8 VK EY UW 8N ZH BR FH 3R XK 3 8 ET HY XH DR RV WB 8T W8 FU X3 UM YV R5 KN HF TV
NT V3 YR 53 F8 VZ MF FF 3F EW NF 8Z KK FZ D8 ZF 5V FW8TK YU HN YM EU NU8T5MRUR5 8D MB Y5 5K UY MK NN DW FV RU 3H VMH5TBUF5M XZ VB YE DD YK FW
ED RM VB YY TD PV WP 5B UU HX 85 XD 3R B3 ZT RE RK EZZEETEF UR BB 8W WD RFHNTXU55D DK XN UN Z8 MF FK DK VX UF 5N V5 FMEUNKUXBK ZF 5M NV MZ FE T8
HX WD 55 W3 WK HT H5 WY U H3P BT 5R HR X3 YE T8 HK BYMR VH 8B 8X PE R5 NX 3N ND YH YM 5Y 5E RM NP XU UX NV EB TF WV HX K5 NY ZP
8P 5H 5W ZU PY VX U5 3E EH EV EW R8 UV FE MF FM FH VX 5F FZ VB 8Z R5 ZN 3T P D E B 8V N8 BP UM EN 5H HY RX ZK FY TK TP ZB UY
83 TU FM HV WB BD D5 HDB MHV FF ZW 8T Y5 DYY NV XUY BU UPV BR FV N3 UZD RB 3XM MF YZE VTE 8B WK T5V WKF X8 T3T 5V XHE B8 MED BH HU UE FW Z8
WN E3 ZY BU YUZZWPRZ UV 55EPDZB8WKN 3U Z5FMPP3Z YBVMFRBH KKZ ZRKBFF8VT RU 5X E3BNUPVU PYFWTPNP ZR UTN 3KN ZHMW5YR5 TT5UN8XT UENHPPDH M8HDRHZF MB 55VMZ8R HXW5HU5B Y8 8F YM
F5 UW ER KE VMHE 583 YVUK 8RNY HP XV HUKH 8K YHBW Z V3UXF ZM RV XX ZH3B PR PNTFF M5 NB DV TTZ5 WDV3 R5 X8Z3 WE 8XTUR HW MRE5K P3RT NT WV UN
UWD XM
YT8K PPR
ZKYPEVWRMWKF
UTYDTXZV
).
Enjoy