Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: MoonKid on February 23, 2006, 08:36:50 pm

Title: use a project on ramdisk
Post by: MoonKid on February 23, 2006, 08:36:50 pm
I want to use my project on ramdisk.
For that I need a to copy the project to ramdisc if I open it, an copy it to harddisc if I save and close it.

In the project settings could be two fields for "command before open" and "command after close". I can start scripts with it.

Is it possible now?
Would this be needfull for C::B, so I can make a feature request?
Title: Re: use a project on ramdisk
Post by: Game_Ender on February 23, 2006, 09:54:11 pm
You can already do this with a simple batch file.  Just run it instead of codeblocks.  Every time the batch files is run it copies your "project" (which I assume include all your source files too) to your Ram disk, then invokes codeblocks with your project file name as a command line parameter.  On the next line on the batch file just have a command to copy all the files back.  This line won't be run untill you close codeblocks.
Title: Re: use a project on ramdisk
Post by: GLfoat on February 23, 2006, 09:58:31 pm
I want to use my project on ramdisk.
For that I need a to copy the project to ramdisc if I open it, an copy it to harddisc if I save and close it.

In the project settings could be two fields for "command before open" and "command after close". I can start scripts with it.

Is it possible now?
Would this be needfull for C::B, so I can make a feature request?

indeed, i wonder how coldblocks could exist without this feature until now !

maybe we could have a feature to copy coldbocks itself into the ramdisk to speed up the starting process ?
if any of the very helpfull peple here would help me, i could make a feater requist, i read about this in an other posting
Title: Re: use a project on ramdisk
Post by: thomas on February 23, 2006, 10:33:44 pm
Why would anyone want to use a ramdisk, anyway?

Or are you talking about something like Gigabyte's i-Drive?
Title: Re: use a project on ramdisk
Post by: Michael on February 24, 2006, 12:34:09 am
indeed, i wonder how coldblocks could exist without this feature until now !

Ehm....CodeBlocks and not coldblocks..... :roll:

Anyway, who are/would using/use a ram disk now (as thomas said) :?? I had the possibility to create a ram disk on my "relatively" old Mac, but on PC...

Best wishes,
Michael
Title: Re: use a project on ramdisk
Post by: MoonKid on February 24, 2006, 03:16:43 pm
Why would anyone want to use a ramdisk, anyway?

Because the build process is faster then.