Solved

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

Posted on 2003-12-02
3
1,044 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
[X]
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
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
Run AutoHotkey script directly from Notepad++ 5 233
Batch: reboot servers one by one. 4 38
Adding a countdown to HTA 12 114
Remote start and stop of service 3 70
A short article about a problem I had getting the GPS LocationListener working.
This is an explanation of a simple data model to help parse a JSON feed

751 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