Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1068
  • Last Modified:

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

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
MattyAllen
Asked:
MattyAllen
1 Solution
 
AlexFMCommented:
del *.sgm
0
 
JNSTAUBCommented:
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
 
WillHudsonCommented:
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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now