User forums > General (but related to Code::Blocks)

Had to delete C::B along with the projects folder

<< < (2/3) > >>

Freem:
I do not understand what do you mean about the cbp folder...

Did you mean that you separate source code and cbp files? If yes, it is not to be a "newbie". In many projects, build systems are separated from source files. (I think I will try to modify the project wizard to give such kind of separation between source and build system, one day)

To know you you can recover your files, just try to open them with any text editor. Not something like word or wordpad, open-office or other text processor, but something like notepad, notepad++, edit (on command line).
If you can read your file, it is good, you still can use them. If they were modified and can not compile, you will at least be able to reuse part of them.
Cbp files are a bit different, they are plain text too, but they might be damaged because it is a special format, near HTML (they have the same ancestor in fact). So, being readable does not mean that they are not damaged. The only way to know is to open them with C::B (or knowing the internals of this file).

If you can not read your files with text editors, they are damaged and you will need more complex tools to recover them, depending on the file system used on the partition where they are stored.

perento:
I see now, it gets cleared. The fact is that i deleted the whole C::B in order to clean my PC from the viruses. Inside the IDE was my projects.
I have to download a brand new IDE (i think).

I'll give an example what is poping in my head, as an idea to recover them. When i delete my Skype, the chronologie was still there, when i download the new skype. I guess its account based function.

This topic is with extremly newbie-like questions as do my projects. If there is a way to recover the code's with a brand new IDE, this will be awesome. But if not, it wont be a big deal, most of the projects was 300~ lines.

renega_666:
Skype data are program or account data. You don't create them manually nor own them, they are hidden from the lambda user and are stored somewhere (usually not where the software is installed), that's why you get them back when re-installing the software.

Source files are files that you create and that you own. Codeblocks (and any other IDE btw) knows nothing about your source files until you load them. If you delete them and you have no backups, then they are lost.

As a general advice, you should put your source files into dedicated folders and use a versioning system such as subversion or git to back up and track file changes.

perento:
I guess they wont be recovered.
Anyway the projects are very newbie, just understanding of C++ basics and few more.

Really thanks for this fast and kind support!

Freem:
There are tools like undelete, which can allow to retrieve deleted files.
But they can only give good results if there were not many modifications on the file system. You could try some research on that subject. (In fact, even formatting can be undone).
Depending on many factors, results are not guaranteed.

And I agree with renega_666, you should really spend some time into versioning control systems. They will save you lot of time, because they are able to remember modifications you made on your source files.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version