line: pushd d:\ navigates your script to the root drive d: (you should add a line at this point: attrib /s -r -h -s *.* to insure all files are deleted - see revised response #1) line: del /s /q *.* deletes (permanently!) all files in the current directory (root), and all subdirectories recursively (ie: all subdir, all subdir in all subdirs, etc.) without querying "are you sure" each time. Please use with extreme caution and be aware of the consequenses.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.