I want to know how to add files in directory's and sub-directory's at once to
a project in Devc++. Does anyone know? The reason I ask is because I have to
start coding and navigate within a source-depository of over 100 files. I
really don't want to add them one by one, and I want to keep the directory
structure.
Yours sincerely,
Bas Kapteijn
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The project details are kept in the .dev file in the project folder; this file
is plain text and can be edited directly if you are careful. The approach I
have used is:
1) Create an empty project, and add at least a couple of files from different
folders.
2) Save and close the project;
3) Create a file list by redirecting the output of DIR, e.g:
c:\> cd myproject
c:\myproject> dir /s /b *.c* >filelist.txt
The second line will get all .c and .cpp files, change the wildcards/filespec
to suit.
3) Open the .dev file directly in a text editor (or Dev-C++ itself)
4) Open the filelist.txt
5) Copy and paste the list where teh dummy file entries are (delete the dummy
entries)
6) Check the format of teh entries is the same as teh dummy entries, use
search+replace to fix anomalies.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear reader,
I want to know how to add files in directory's and sub-directory's at once to
a project in Devc++. Does anyone know? The reason I ask is because I have to
start coding and navigate within a source-depository of over 100 files. I
really don't want to add them one by one, and I want to keep the directory
structure.
Yours sincerely,
Bas Kapteijn
The project details are kept in the .dev file in the project folder; this file
is plain text and can be edited directly if you are careful. The approach I
have used is:
1) Create an empty project, and add at least a couple of files from different
folders.
2) Save and close the project;
3) Create a file list by redirecting the output of DIR, e.g:
The second line will get all .c and .cpp files, change the wildcards/filespec
to suit.
3) Open the .dev file directly in a text editor (or Dev-C++ itself)
4) Open the filelist.txt
5) Copy and paste the list where teh dummy file entries are (delete the dummy
entries)
6) Check the format of teh entries is the same as teh dummy entries, use
search+replace to fix anomalies.
Clifford