Make PureBasic_CompilationX.exe invisible

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
HeX0R
Addict
Addict
Posts: 1189
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Make PureBasic_CompilationX.exe invisible

Post by HeX0R »

My problem is, that Wuala allways syncs my folders and also those PureBasic_CompilationX.exe corpses.
If they would be invisible Wuala wouldn't care about them.

Maybe as an optional checkbox?
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Make PureBasic_CompilationX.exe invisible

Post by IdeasVacuum »

Actually, I think PB should delete them.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: Make PureBasic_CompilationX.exe invisible

Post by Zach »

As a work around, you can just set your compile target to compile to a sub-directory, and then exclude that directory from you backup program.

I do wish PB had a kind of "Global" option, so that whatever project you were using, it would always (create if needed) compile to a "bin" directory or w/e and you wouldn't need to set a compile target path for each and every project.. But right now I just keep two compile targets for projects. Debug and Release, compiling into /bin/debug, /bin/release.

And yes it would be nice if it searched for stray compilations left behind because something didn't exit normally, etc.
User avatar
HeX0R
Addict
Addict
Posts: 1189
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Make PureBasic_CompilationX.exe invisible

Post by HeX0R »

PB deletes them after closing the IDE.
When coding, my IDE is open for a few hours, and any created *Compilation.exe will get synchronized.

But i helped myself now with a micky-mouse-tool, which hides the exe directly after creation.

[Edit]
This is the tool:

Code: Select all

a$ = ProgramParameter()
If a$ And FileSize(a$) > 0
	SetFileAttributes(a$, GetFileAttributes(a$) | #PB_FileSystem_Hidden)
EndIf
Using "%EXECUTABLE" as argument and as trigger "After compiler/Run"
Last edited by HeX0R on Wed Dec 07, 2011 6:37 pm, edited 1 time in total.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Make PureBasic_CompilationX.exe invisible

Post by Trond »

By default they are created in the temporary directory. If your backup program backs up your temp folder that's strange. Maybe unchecking "create temporary executable in source directory" can help you?
User avatar
HeX0R
Addict
Addict
Posts: 1189
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Make PureBasic_CompilationX.exe invisible

Post by HeX0R »

This would surely help, but i didn't check this option by accident ;)
Post Reply