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
How do I use the Windows XP installation disc to replace missing system files?
Small Business mathematics
How do I get this PHP IMAP script to fetch the body of emails? I can't get it to work.
Roaming Profiles in Windows 7 Pro and SBS 2008
Intel Sata RAID controller on RHEL 4 problem
Windows Small Business Server 2008: Critical Event Notification
Sharepoint Webpart page load event issue
C# 4.0 convert from 12h format to 24h format.
Diffrence between debug & release versions
imac osx 10.5 - Does not boot; cannot find harddrive. Getting a folder icon wid a question mark flashin at startup