-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|295|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Misc


 
LostUser
Created : 20 May 2008
 
System : Windows
Language : Blitz

Delete annoying backup files

Batch file to remove annoying blitz basic backup files




 

Comments


Tuesday, 20 May 2008, 10:16
Jayenkai
c:\program files\blitz3d\cfg
(or whichever!)
Open blitzide.prefs in notepad, and change
edit_backup 2
to 0.
Voila, no more backups.

I'm sure there's a point to the backups, but if you hit F7 to test, it saves over backup 1, then F5 to run, it saves over backup 2!
Useless...!
Tuesday, 20 May 2008, 10:19
JL235
I find backups very annoying, but when you make a big change or realized you've just lost some code, the backup can really save your neck. I'd strongly advise against disabling or removing backups.

However if the BlitzIDE had a better undo then these occasions would have been (at least for me) far rarer.
Tuesday, 20 May 2008, 10:29
Mog
I second the notion of BlitzIDE undo being garbage, and should be reworked.

And if only you could define a repository for backup files instead of them just mucking up your folders... then if it screws up, you can hit 'cached versions' in the IDE. They do it for webpages, why not source. Though i can see how it could then get cluttered, but why not have a different compile option such as 'Backup Current File and Compile' as F4 or some crap, and leaving F5 alone on normal Compile for when you're just debugging minor stuff that can afford to be lost such as playing with variables.
Tuesday, 20 May 2008, 11:25
JL235
Subversion support would be more useful, or probably even better for indie developers, a lightweight local-only version control system built directly the IDE (which only works on that machine). Every time you save your source file (or perhaps save and commit) the IDE keeps a full record of your source changes which you can step back through.
Thursday, 07 October 2010, 09:06
BGDDisco
I just tried writing this.
;******************************************************
Graphics 800,600,16,2
Dim l$(27)

mf=ReadFile("C:\Program Files\Blitz Basic\cfg\blitzide.prefs")
For n=1 To 27
l$(n)=ReadLine(mf)
If Instr(l$(n),"backup") Then l$(n)="edit_backup"+Chr$(9)+"0"
Next
CloseFile mf
mf2=WriteFile("blitzide.prefs")
For n=1 To 27
WriteLine(mf,l$(n))
Next
Print "Yipee!! No more annoying bb_bak files."

FlushKeys
WaitKey
End

;*************************************************

It doesn't work, but maybe some of you guys here can make it work.
Thursday, 07 October 2010, 13:26
Tikihead
I hate the default Blitz IDE. A *much* better way to go is with IDEal.
Thursday, 07 October 2010, 20:31
Mog


Just kidding-- useful little snippet.
Friday, 08 October 2010, 03:53
JL235
Someone should build a plugin for BMax support for one of the major IDEs; such as Visual Studio, Eclipse or NetBeans. IMHO I think Eclipse is the best suited of the three (even though I think it's the worst). Using a proper IDE would be the best thing to use.
Friday, 08 October 2010, 04:14
Jayenkai
Extreme Violence Filled Hatred!!!!

*hugs plain IDE*
Friday, 08 October 2010, 04:50
waroffice
im with jay on this, not keen on the generic IDE apps out there.

I have seen worse IDEs, try the arduino one about a year ago, to put it in perspective, they released version 1 last week!
Sunday, 10 October 2010, 06:37
bram32
I'm using Notepad++ for my coding related tasks, and it works really well. You can find a b3d/bmax syntax file on this page:
https://members.home.nl/bas.de.reuver/files.html