Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Delete all *.sgm files in current dir using .bat!

Posted on 2003-12-02
3
1,026 Views
Last Modified: 2010-05-18
Hi people,

my problem is that my boss has asked for a .bat file that that will delete all the *.sgm files in the directory the .bat file is currently in. Can anyone help me please.

Also this is the first .bat file i have eva written so has anyone got any good sites for background readin etc ... cheers Matt
0
Comment
Question by:MattyAllen
3 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 9856941
del *.sgm
0
 
LVL 4

Accepted Solution

by:
JNSTAUB earned 50 total points
ID: 9856966
in notepad :
 
del *.sgm /s
/s  in the directory and subdirectory
save as  del.bat

and launch del.bat

/s  in the directory and subdirectory
/p if you want to confirm the deletion for each files
0
 
LVL 13

Expert Comment

by:WillHudson
ID: 9881000
I know this has already been answered, but you also wanted a few websites for help with batch files. Try these (helped me when i had no idea!):

http://www.computerhope.com/batch.htm#1

http://www.incodesystems.com/PRODUCTS/BATCHFI1.HTM

http://www.pcmag.com/article2/0,4149,763154,00.asp
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question