Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Create folder copies of files with added text at the end.  (Read 5926 times)

0 Members and 1 Guest are viewing this topic.

Yarcaz

    Topic Starter


    Starter

    • Experience: Beginner
    • OS: Windows 7
    Create folder copies of files with added text at the end.
    « on: February 01, 2016, 11:32:49 AM »
    I want a batch file to take all of the files in a folder by dragging it into a command prompt, and then in that folder the batch file creates folder copies of all the file names in the folder that was dragged into the command prompt, but these new folders would have added "(detailed)" to it.
    EX:  the file "boss7_stage_lz7.nsbmd" would have a folder equivalent of "boss7_stage_lz7.nsbmd (detailed)", doing this by hand for a couple thousand files is so time consuming, anyone here good with making batch files that can help me out with this?

    Squashman



      Specialist
    • Thanked: 134
    • Experience: Experienced
    • OS: Other
    Re: Create folder copies of files with added text at the end.
    « Reply #1 on: February 01, 2016, 12:10:37 PM »
    Where is this so called (detailed) information coming from?  I can't program anything unless I have a full scope of the project.

    Yarcaz

      Topic Starter


      Starter

      • Experience: Beginner
      • OS: Windows 7
      Re: Create folder copies of files with added text at the end.
      « Reply #2 on: February 01, 2016, 12:36:55 PM »
      OK, so I am ripping/reverse engineering/de-compiling/dis-assembling/unpacking whatever you want to call it many files from many different games and programs, etc. and when I open these files they normally contain a lot of other files.
      So let us say that the file "boss5_core_lz7.nsbmd" for example when "opened" by extracting from the file gives me the following new files:
      "boss5_bar"
      "boss5_battery"
      "boss5_core"
      "boss5_freeze"
      "boss5_icicle"
      "boss5_lifesuppor"
      "boss5_missile"
      "boss5_ply_freeze"
      "boss5_shutter"
      "boss5_zako_a"

      In this real example there are very few files, as this is one of the smallest they I deal with. Normally I just select the file name "boss5_core_lz7.nsbmd" by clicking twice slowly and then copy the name, create a new folder and paste the name and I manually type " (detailed)* [I always put a space before detailed], and then once that is done, I manually place the extracted files into the new folder. {My extracting program does not deal with what I am asking if you want to know}

      I use " (detailed)" because I decided it would be that and it made sense to me as it had the files contents, but it could be replaced by whatever people wanted it to be, but it has to be something because you cannot have a folder with the same exact name as a file, so " (detailed)" made it possible to have the folder and distinguishable from the original file with the same exact name [minus the " (detailed)" of course].

      Now this at first seems very easy, but it is tedious when you have to do this for 500 files for example, manually one at a time. So that is what I want from a batch program, it is given a folder, it takes all the names of all the files in that folder, creates new folders that are the same exact number as the files and each of these new folders are named the same as the file but with the added " (detailed)".

      I hope that this is clear.

      Here is an image showing an example:
      Part 1 -

      Part 2 -

      Geek-9pm


        Mastermind
      • Geek After Dark
      • Thanked: 1026
        • Gekk9pm bnlog
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 10
      Re: Create folder copies of files with added text at the end.
      « Reply #3 on: February 01, 2016, 12:40:47 PM »
      To my knowledge, one does not drag and drop  files into a command prompt.
      You need to express the idea in another form. Such and make shortcuts into a new folder. The shortcuts would have the full path name of each file.  However, getting a batch program to use shortcuts could be a challenge.

      Many administrators now use Powershell to automate file file control jobs.
      http://windowsitpro.com/powershell/working-shortcuts-windows-powershell





      Squashman



        Specialist
      • Thanked: 134
      • Experience: Experienced
      • OS: Other
      Re: Create folder copies of files with added text at the end.
      « Reply #4 on: February 01, 2016, 12:46:24 PM »
      Where did all the PamChrSkin_* files come from?

      Squashman



        Specialist
      • Thanked: 134
      • Experience: Experienced
      • OS: Other
      Re: Create folder copies of files with added text at the end.
      « Reply #5 on: February 01, 2016, 12:47:59 PM »
      To my knowledge, one does not drag and drop  files into a command prompt.
      I have been doing drag and drop batch files for a very long time.

      Yarcaz

        Topic Starter


        Starter

        • Experience: Beginner
        • OS: Windows 7
        Re: Create folder copies of files with added text at the end.
        « Reply #6 on: February 01, 2016, 12:54:28 PM »
        Where did all the PamChrSkin_* files come from?

        That is only a sample on about 1/8 of the files that were extracted from the shader_debug_add.ar.02 and they were placed/saved in the manually created folder shader_debug_add.ar.02 (detailed)

        But I think you can see why I want a program to create all of these folders because manually creating them (I'm sorry if I have said this a lot) is very tedious and time consuming. Think that you will be able to help?

        Squashman



          Specialist
        • Thanked: 134
        • Experience: Experienced
        • OS: Other
        Re: Create folder copies of files with added text at the end.
        « Reply #7 on: February 01, 2016, 02:22:39 PM »
        What program are you using to extract the files and what is the syntax to use the program?

        patio

        • Moderator


        • Genius
        • Maud' Dib
        • Thanked: 1769
          • Yes
        • Experience: Beginner
        • OS: Windows 7
        Re: Create folder copies of files with added text at the end.
        « Reply #8 on: February 01, 2016, 02:35:53 PM »
        So are you cracking games and apps then ? ?
        " Anyone who goes to a psychiatrist should have his head examined. "

        Yarcaz

          Topic Starter


          Starter

          • Experience: Beginner
          • OS: Windows 7
          Re: Create folder copies of files with added text at the end.
          « Reply #9 on: February 01, 2016, 02:47:48 PM »
          What program are you using to extract the files and what is the syntax to use the program?
          I am use many different programs for many different games and programs when I extract files from them, since there are so many I won't list them. For wat I am looking for the batch file doesn't need to interact with the program that is extracting files, it just needs to create folder copies of all the files from the selected folder and their names into respective new folders with the added " (detailed)" added at the end of the folder names.

          Once the program does that it is simple to just use my extracting program and extract the files into the newly created folder. [But like I said it may seem simple at first, but I have to do this with so many files, that to create folders for each one, is very time consuming]

          So are you cracking games and apps then ? ?
          Yes, I upload things to "themodelsresource" & "thesoundsresource" & "thespritesresource" & "thetexturesresource" at "theVGresource" website. I am able to delve into the games files and code and extract things for others there, but it also provides me the opportunity to learn how all of the games work and function and how to possibly create mods for them if none exist presently. I also do this for programs, but at the moment I am focused on games.

          patio

          • Moderator


          • Genius
          • Maud' Dib
          • Thanked: 1769
            • Yes
          • Experience: Beginner
          • OS: Windows 7
          Re: Create folder copies of files with added text at the end.
          « Reply #10 on: February 01, 2016, 03:06:24 PM »
          Topic Closed.
          " Anyone who goes to a psychiatrist should have his head examined. "

          patio

          • Moderator


          • Genius
          • Maud' Dib
          • Thanked: 1769
            • Yes
          • Experience: Beginner
          • OS: Windows 7
          Re: Create folder copies of files with added text at the end.
          « Reply #11 on: February 01, 2016, 05:21:46 PM »
          Apparently this lock didn't take the 1st 2 times...
          Offhand replies removed.

          Now it's closed.
          patio.
          " Anyone who goes to a psychiatrist should have his head examined. "