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 can I detect a pixel color of an image in Flash using ActionScript 2?
Sharing camcorder footage
The location of default.aspx in a website
look up table value with sql
Change key default value by script
How to set Public Folder "Retention" so that if a public folder is accidently deleted it can easily be recovered through Outlook or PFDAVadmin
Is there any way to limit what the users see in shared calendars in Exchange 2003 / Exchange 2007?
Using VLookup for Data Validation
WebService Client problem
web design vs dev