rm -r <dir> at the DOS prompt.
command.com then scolds you that you are doing something fishy.
Then only you realize that you have to type deltree instead
of rm -r. The batch files provided here sometimes help you
in this regard.
del or
deltree) do not support multiple parameters, like
del file1 file2 file3 dir1 dir2 dir3The DOS implementation of
rm, allows
you to do that, as
rm file1 file2 file3 dir1 dir2 dir3or as
rm -r file1 file2 file3 dir1 dir2 dir3the way you want to delete things.
You get here the following batch files. Each of these commands can be
executed with a -h switch to see what options it supports and
in what format you should specify the command-line parameters.
-o option (This is unlike Unix).
cp -h to know the details.
- df
- Shows memory usage. Call
df -f to see details on available memory.
- grep
- This is not the Unix grep.
It can find only strings and not regular expressions. Use the options
-i for case-insensitive search,
-n for printing line-numbers of input files where the string
apprears and
-v for displaying lines not containing the search string.
- ls
- Listing of files. Options allowed
are:
-l, -a, -al and -t.
-l shows long-listing.
-a shows all files (including hidden ones).
-al is -l plus -a.
Finally, -t shows files sorted according to time (oldest
first). ls.bat supports only one option per call.
- man
- Essentially calls DOS help
command.
- mv
- Moves single or multiple files to a
directory. Type
mv -h to know the details.
- rm
- Removes files and/or directories.
The
-r option deletes recursively.
- uname
- Shows some machine-specific
details. This does not work exactly the same way the unix
uname does.
That's it. Things are certainly not serious. It's the result of a little hacking in a free evening. It's my pleasure if you like it. And, of course, you may download all these programs.
Have a nice time......
Abhijit Das (Barda)
This page hosted by
Get your own Free Home Page