The Team Jackulator Forums
May 01, 2024, 09:13:10 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
   
   Home   Help playlist Arcade Search Media Downloads Login Register  
The Jackulator 9000 Forums
Pages: [1]   Go Down
  Send this topic  |  Print  
This topic has not yet been rated!
You have not rated this topic. Select a rating:
Author Topic: Bat files  (Read 1768 times)
0 Members and 1 Guest are viewing this topic.
CallMeBronco
I'm Mr. Buznik's dick
MEGAMEMBER
Team Jackulator
****
Offline Offline

Location: I don't know
Posts: 2472

I'm dead! Help me out! I'm dyin' here!


Awards
« on: August 18, 2009, 10:59:49 am »

Im not talking about Batman,
I want to make a simple bat file that deletes files in a specific folders. And then possibly one that will do the same execpt only certain "types' of files.. yakno what I mean?
Logged

my jackulator tribute video: https://www.youtube.com/watch?v=mtbIpQTjH7M



"Nothing worth having comes without some kind of fight" - Bruce Cockburn



Sir? what do ya think?
Perpetual Second Banana
Jack Mod
Team Jackulator
*****
Offline Offline

Location: "inside the meatsauce, drawing on my crap, like a drunk child"
Posts: 1604



WWW Awards
« Reply #1 on: August 18, 2009, 12:15:01 pm »

i'm not really a pro on bat files at all, hmmm....

there is a way you can do it i suppose

"drive letter:\Folder Name\*.*"

to delete everything in the folder^^^

"drive:\folder\*.file extension"

File extension is the type of file you want to delete.

i am unsure about deleting files according to size and dates however... i hope this was something along the lines of what you were looking for.

*tip* if you have other folders inside the folder you're deleting files from you don't want to delete, make sure to use "drive:\foldername\*.*" this will only delete the files in the parent folder, you can add the other folder names beneath if you want to delete more.


Logged

http://www.youtube.com/hildegain
http://www.facebook.com/profile.php?id=1481771959&ref=profile
http://steamcommunity.com/groups/JackulatorT

Podcast


^^^^my crispin freeman sample^^^^
87+ calls posted, to be honest i cannot be bothered counting
jackulator
... --- ...
Administrator
jackulator.com
******
Offline Offline

Location: Eastwick, Rhode Island
Posts: 10507


"Twenty pushups a day..."


WWW Awards
« Reply #2 on: August 18, 2009, 05:06:10 pm »

I'm not good at them either bronco - it took me hours of research just to make the BAT files I have accompanying the autoboards

but here's the deleting BAT file I used to use on the H4 to delete mp3s from the MP3FILESnew folder:

for /f "delims=" %%i in (____mp3ToDelete.txt) do echo D|del "..\MP3FILESnew\%%i"

but that only works if you have all the mp3s you want to delete listed in a text file called ____mp3ToDelete.txt and the name of the folder to delete them from is MP3FILESnew, which is up one folder level from the BAT file

I think if you removed the ..\ from before MP3FILESnew and always edited the BAT file to reflect a different foldername you could run the BAT file from within the folder from which you want to delete the mp3s, also you can change the name of the text file in the BAT to whatever you want - that's all I can do for ya

if you wanted to make the  smiley
Logged

Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  



Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.547 seconds with 20 queries.