Solved

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

Posted on 2003-12-02
3
996 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now