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
Event ID 12293 Security -SPP Publishing key management service Error#0x8007232D
AJAX Refresh on Submit of Pop Up Window
How do I restore Admin Share (Admin$) to 50 workstations on a Win2003 domain?
Crystal cross-tab page numbering
Using Redemption with Late Binding
Publish Resource Calendar for all users
SSMS no tables shown in Query Designer
Cisco Rv042 -- how do forwarding rules and firewall access rules work together? And PPTP
Apple Mail Notes keep reappearing after deletion
PPTP VPN via Windows 2008 R2