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
The operation can't be completed.....
Hex to ASCII conversion in C#
send as different user - exchange 2003/outlook 2003
PL/SQL Performance
JQuery based image (actually an element of code) rotator
Applying service pack 7 to BES 4.0
Reference a selected rows column value from a gridview in VB .Net 3.5
Generate email and append fields to body
Find position of second to last period in a string
Running .exe in a logon script