DOS webnote

12

JUN

09

DOS webnote

This is a webnote for DOS related topics where I file tips, tricks, snippets etc. that I used to solve a problem. No more postits on my monitor!

map/unmap server to drive

net use L: \\in.xxx.com\D_DISK\ letmein /user:littlepig
net use L: /delete

5 second pause in batch file

ping -n 5 127.0.0.1 > null

concatenate files

copy all.txt + part1.txt + part2.txt

batch rename files

ren *.htm *.

Especially helpful for multipart zip files from rapidshare or torrent that were renamed to htm to avoid being removed :)

get parameters as variables

echo %1 %2

delete folders from folder tree

for /f %D in ('dir /s/b/ad ^| find "foo"') do rd /s/q "%D"

A description of this little script can be found here.

is the sum of eight and nine.