move - Batch, moving files located in a subdirectory -


I would like to place all the files on the other side in subdirectories, which have specific file extensions.

What do I have here:

  CD: Media \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ' / code>  

Is there something wrong with my 'move' syntax? How can I get it?

Yes, there is something wrong that you can use wildcards only on the last element of the specified path. And you are using the wildcard in the previous element (mm4 files) and in the previous element (folder where .mp4 files are located). This is not allowed.

You have to calculate the folders and then for each, the file must be moved to that target folder. Mkdir cinema / i "% ~ nxa" == "Movies" move to movie / DVD% A ("*") for PushD D: \ Media \ Unsorted if not present / To include previous commands in a batch file, percentage marks should be doubled, i.e. each "code", for example, u "% ~ FA" * .mp4 "" movies "popd

>% to %%

each directory (for / d% a where % a is processed What does this mean for that directory?) If the directory ( pushd ) is not equal to the directory name and extension (% ~ nxa ) target directory, then all .mp4 files From the source directory using your full path (% ~ fa )

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -