Welcome to WebmasterWorld Guest from 23.20.101.42

Forum Moderators: bill

Message Too Old, No Replies

Batch getting rid of " .bak "

any way to?

     
2:46 pm on Oct 19, 2007 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2003
posts: 4393
votes: 2


I dev on XP pro using UltraEdit
however the make does not impact because any editor creates a . bak file
but before uploading I like deleting those .bak

Do yo know of a better way than processing one at time
thanks

5:17 pm on Oct 19, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 2, 2003
posts:3710
votes: 0


I'm not sure if this is what you want, but at the command line you can type...

del *.bak

Naturally, you can create a .bat file that includes this line that can be launched with a click.

Kaled.

5:21 pm on Oct 19, 2007 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2003
posts: 4393
votes: 2


Hi Kaled
this probably is it
but too wide of a proposition
it should target only a specified dir

could it be done

and if I may: Show me how to create a bat file
thanks

<edit>
I suppose you mean Windows com line?
</edit>

5:35 pm on Oct 19, 2007 (gmt 0)

Moderator from US 

WebmasterWorld Administrator lifeinasia is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 10, 2005
posts:5613
votes: 33


From Windows Explorer, right-click on the topmost forlder you want to delete from, then select search. Search for *.bak, select them all, then click delete.
5:55 pm on Oct 19, 2007 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2003
posts: 4393
votes: 2


AHHH thanks
maybe someday.... I will know how to use MS Wins :)
So obious, long time I was bugged by that stuff
why didn't I think about it!

A while ago I did read a thread about
careless webmasters, uploading even the .bak file
that would be a fine addition to that thread!

4:11 am on Oct 20, 2007 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14767
votes: 82


In UltraEdit goto
Advanced ¦ Configuration ¦ File Handling
and select the "No Backup" radio button.
10:24 am on Oct 20, 2007 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2003
posts: 4393
votes: 2


Even better!
works fine; since when tweaking a file I made a rule of thumbs of always saving the original and rename it _OLD