Microsoft
Software
Hardware
Network
Question : How to delete *.dot files among *.dotm files with cmd script?
I have a folder with .dot files and .dotm files. For example I have blank.dot and blank.dotm files. I need to delete those .dot files because they are not used any more. But I noticed using DEL *.dot deletes also .dotm files. What is the right command to use?
Answer : How to delete *.dot files among *.dotm files with cmd script?
As a command typed directly into a DOS box, this will work nicely:
for %a in (*.dot) do if /i "%~xa"==".dot" del "%a"
The same command can be ran from within a batch file like this:
@echo off
for %%a in (*.dot) do if /i "%%~xa"==".dot" del "%%a"
Random Solutions
Emc Networker mminfo command
asp forms handling
Zebra LP 2844 label printer prints the first print job successfully, subsequent print jobs after skip labels and/or print partial data on labels until computer is rebooted.
I/O error reported on file system /oracle/P1U aix hdisk path vio
IIS 6.0 asp.net 2.0 cpu performance issue
i7-860 vs. i7-920
subnet beginner ?
"svc: short len 19, dropping request"
RHEL command to eject cd rom
how to indent a block of text