Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Visual C++ Directory/folder cleaner

Visual C++ Directory/folder cleaner

Scheduled Pinned Locked Moved C / C++ / MFC
c++
9 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pblais
    wrote on last edited by
    #1

    Hi... Has anyone written a small app or is there some shareware app available that will let me "clean-up" Visual C++ folders before transferring files. I am looking for something that would find all .obj, .pch, etc. files. Basically it would search in the folder that I am in at the time and any subfolders before that and remove any compiler/linker generated files that exist only at compilation/link time. This would make my folders a lot smaller and easier to manipulate in terms of "zipping up" for transferring from one PC to another or for archiving... Thank you in advance Pierre

    J M O 3 Replies Last reply
    0
    • P pblais

      Hi... Has anyone written a small app or is there some shareware app available that will let me "clean-up" Visual C++ folders before transferring files. I am looking for something that would find all .obj, .pch, etc. files. Basically it would search in the folder that I am in at the time and any subfolders before that and remove any compiler/linker generated files that exist only at compilation/link time. This would make my folders a lot smaller and easier to manipulate in terms of "zipping up" for transferring from one PC to another or for archiving... Thank you in advance Pierre

      J Offline
      J Offline
      jhwurmbach
      wrote on last edited by
      #2

      Normaly, "Build / Clean Solution" is enough.


      "We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation." -- Caius Petronius, Roman Consul, 66 A.D.

      P 1 Reply Last reply
      0
      • J jhwurmbach

        Normaly, "Build / Clean Solution" is enough.


        "We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation." -- Caius Petronius, Roman Consul, 66 A.D.

        P Offline
        P Offline
        pblais
        wrote on last edited by
        #3

        Thanks for the help but that won't work for me for two reasons... 1) I have a huge amount of projects that still have all the intermediate files that I would have to open in Visual Studio just to "Clean". and 2) "Clean" says it deletes the intermediate files but it deletes the .exe file too There must be some application that will scan down through folders, search for intermediate files and delete them???? Once again Thanks

        W 1 Reply Last reply
        0
        • P pblais

          Thanks for the help but that won't work for me for two reasons... 1) I have a huge amount of projects that still have all the intermediate files that I would have to open in Visual Studio just to "Clean". and 2) "Clean" says it deletes the intermediate files but it deletes the .exe file too There must be some application that will scan down through folders, search for intermediate files and delete them???? Once again Thanks

          W Offline
          W Offline
          Waldermort
          wrote on last edited by
          #4

          pblais wrote:

          There must be some application that will scan down through folders, search for intermediate files and delete them????

          Why don't you make one. Iterating files and folders is on about the same level as coding in VB.

          P 1 Reply Last reply
          0
          • P pblais

            Hi... Has anyone written a small app or is there some shareware app available that will let me "clean-up" Visual C++ folders before transferring files. I am looking for something that would find all .obj, .pch, etc. files. Basically it would search in the folder that I am in at the time and any subfolders before that and remove any compiler/linker generated files that exist only at compilation/link time. This would make my folders a lot smaller and easier to manipulate in terms of "zipping up" for transferring from one PC to another or for archiving... Thank you in advance Pierre

            M Offline
            M Offline
            Michael Dunn
            wrote on last edited by
            #5

            DirClean[^]

            --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

            L 1 Reply Last reply
            0
            • W Waldermort

              pblais wrote:

              There must be some application that will scan down through folders, search for intermediate files and delete them????

              Why don't you make one. Iterating files and folders is on about the same level as coding in VB.

              P Offline
              P Offline
              pblais
              wrote on last edited by
              #6

              If I had the time, I would... Thanks

              R 1 Reply Last reply
              0
              • M Michael Dunn

                DirClean[^]

                --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Your pardon Mike. I accidentally voted the "1" :mad:. Really need an "Undo" button.

                Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy

                1 Reply Last reply
                0
                • P pblais

                  Hi... Has anyone written a small app or is there some shareware app available that will let me "clean-up" Visual C++ folders before transferring files. I am looking for something that would find all .obj, .pch, etc. files. Basically it would search in the folder that I am in at the time and any subfolders before that and remove any compiler/linker generated files that exist only at compilation/link time. This would make my folders a lot smaller and easier to manipulate in terms of "zipping up" for transferring from one PC to another or for archiving... Thank you in advance Pierre

                  O Offline
                  O Offline
                  Orhun Birsoy
                  wrote on last edited by
                  #8

                  I usually change the "Intermediate Directory" to somewhere outside my source directory. ie in a project I'm currently working on, this setting is set to "$(SolutionDir)..\..\tmp\$(ProjectName)\$(ConfigurationName)".

                  Orhun Birsoy

                  1 Reply Last reply
                  0
                  • P pblais

                    If I had the time, I would... Thanks

                    R Offline
                    R Offline
                    Ravi Bhavnani
                    wrote on last edited by
                    #9

                    Or you could just use this[^] one. :) /ravi

                    This is your brain on Celcius Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups