BAT - Move files into similarly named foldersDelete files from one folder if a similarly named file does not...

Is it appropriate to ask a former professor to order a book for me through an inter-library loan?

Create chunks from an array

Is it possible to clone a polymorphic object without manually adding overridden clone method into each derived class in C++?

How do you make a gun that shoots melee weapons and/or swords?

Is there a way to make cleveref distinguish two environments with the same counter?

Which country has more?

Is there a math expression equivalent to the conditional ternary operator?

What should I do when a paper is published similar to my PhD thesis without citation?

Smooth vector fields on a surface modulo diffeomorphisms

Do black holes violate the conservation of mass?

Are these two graphs isomorphic? Why/Why not?

If sound is a longitudinal wave, why can we hear it if our ears aren't aligned with the propagation direction?

Can one live in the U.S. and not use a credit card?

Cycles on the torus

School performs periodic password audits. Is my password compromised?

What does *dead* mean in *What do you mean, dead?*?

Help! My Character is too much for her story!

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

If nine coins are tossed, what is the probability that the number of heads is even?

How to copy the rest of lines of a file to another file

Is there a logarithm base for which the logarithm becomes an identity function?

Short scifi story where reproductive organs are converted to produce "materials", pregnant protagonist is "found fit" to be a mother

I reported the illegal activity of my boss to his boss. My boss found out. Now I am being punished. What should I do?

What is the purpose of a disclaimer like "this is not legal advice"?



BAT - Move files into similarly named folders


Delete files from one folder if a similarly named file does not exist in another folderHow can I copy identically-named files out of a series of folders, and append the folder name to the filename to disambiguate?How to organize files in accordingly named directories from command line under LinuxUse DOS batch to move all files up 1 directoryBatch moving files from one folder to multiple folders based on file maskBatch to move files from root folder into sub-foldersMove files with the same name but different extension to existing location containing files with same nameMove files into a folder based on their nameBatch Copy Multiple Files to Multiple FoldersSorting files into folders, according a portion of the file name













0















I spent some time browsing the previously asked questions, but none of them seem to match my needs.



The problem I'm having is that my file names use dots, but no spaces.
My folder names use spaces, not dots.



For example, I have a file named C:FilesOne.Two.Three.Four.12.34.5.pdf



The corresponding folder is named C:FilesOne Two Three Four



I would like a script that would detect all of the .pdf files in the C:Files directory, all of the folders in the C:Files directory, and then figure out which folder the file should be placed into based on the naming structure given previously.



I'm having a problem with the dots being in the file name, but not in the folder name, as well as the fact that there's the extra 12.34.5 at the end of the file name that is not in the corresponding folder name. Also, the extra stuff after the One.Two.Three.Four tend to change randomly. It's not always 12.34.5.



Any ideas? Any help I could get would be greatly appreciated. Thanks in advance.










share|improve this question







New contributor




Ed V is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I spent some time browsing the previously asked questions, but none of them seem to match my needs.



    The problem I'm having is that my file names use dots, but no spaces.
    My folder names use spaces, not dots.



    For example, I have a file named C:FilesOne.Two.Three.Four.12.34.5.pdf



    The corresponding folder is named C:FilesOne Two Three Four



    I would like a script that would detect all of the .pdf files in the C:Files directory, all of the folders in the C:Files directory, and then figure out which folder the file should be placed into based on the naming structure given previously.



    I'm having a problem with the dots being in the file name, but not in the folder name, as well as the fact that there's the extra 12.34.5 at the end of the file name that is not in the corresponding folder name. Also, the extra stuff after the One.Two.Three.Four tend to change randomly. It's not always 12.34.5.



    Any ideas? Any help I could get would be greatly appreciated. Thanks in advance.










    share|improve this question







    New contributor




    Ed V is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I spent some time browsing the previously asked questions, but none of them seem to match my needs.



      The problem I'm having is that my file names use dots, but no spaces.
      My folder names use spaces, not dots.



      For example, I have a file named C:FilesOne.Two.Three.Four.12.34.5.pdf



      The corresponding folder is named C:FilesOne Two Three Four



      I would like a script that would detect all of the .pdf files in the C:Files directory, all of the folders in the C:Files directory, and then figure out which folder the file should be placed into based on the naming structure given previously.



      I'm having a problem with the dots being in the file name, but not in the folder name, as well as the fact that there's the extra 12.34.5 at the end of the file name that is not in the corresponding folder name. Also, the extra stuff after the One.Two.Three.Four tend to change randomly. It's not always 12.34.5.



      Any ideas? Any help I could get would be greatly appreciated. Thanks in advance.










      share|improve this question







      New contributor




      Ed V is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I spent some time browsing the previously asked questions, but none of them seem to match my needs.



      The problem I'm having is that my file names use dots, but no spaces.
      My folder names use spaces, not dots.



      For example, I have a file named C:FilesOne.Two.Three.Four.12.34.5.pdf



      The corresponding folder is named C:FilesOne Two Three Four



      I would like a script that would detect all of the .pdf files in the C:Files directory, all of the folders in the C:Files directory, and then figure out which folder the file should be placed into based on the naming structure given previously.



      I'm having a problem with the dots being in the file name, but not in the folder name, as well as the fact that there's the extra 12.34.5 at the end of the file name that is not in the corresponding folder name. Also, the extra stuff after the One.Two.Three.Four tend to change randomly. It's not always 12.34.5.



      Any ideas? Any help I could get would be greatly appreciated. Thanks in advance.







      windows batch batch-file filenames






      share|improve this question







      New contributor




      Ed V is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Ed V is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Ed V is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 10 mins ago









      Ed VEd V

      1




      1




      New contributor




      Ed V is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Ed V is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Ed V is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Ed V is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1412777%2fbat-move-files-into-similarly-named-folders%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Ed V is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Ed V is a new contributor. Be nice, and check out our Code of Conduct.













          Ed V is a new contributor. Be nice, and check out our Code of Conduct.












          Ed V is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1412777%2fbat-move-files-into-similarly-named-folders%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...