Solved

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

Posted on 2003-12-02
3
1,017 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 87
Advice in Xamarin 21 80
How to Convert a Quote to an Order in SalesForce 2 46
Math Equation 23 89
A short article about a problem I had getting the GPS LocationListener working.
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 …

831 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