Menu

Add directory with files to project

Anonymous
2010-01-18
2012-09-26
  • Anonymous

    Anonymous - 2010-01-18

    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

     
  • cpns

    cpns - 2010-01-18

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.