Skip to main content
Code formatting.
Source Link
Giacomo1968
  • 56.1k
  • 23
  • 167
  • 214

Windows (and MacOS plus *ix) predate the numerous extensions created to hold video. The OS just doesn't know how to tell what is a video file and what isn't, so you will need to run that command line for each extension you wish to move.

Alternatively, move the *.txt files to another directory, move everything remaining, then move *.txt back, a la

for /r "M:\movies\new" %%x in (*.txt) do move "%%x" "M:\placeholder"

for /r "M:\movies\new" %%x in (.) do move "%%x" "M:\movies\new"

for /r "M:\placeholder" %%x in (*.txt) do move "%%x" "M:\original directory"

for /r "M:\movies\new\" %%x in (*.txt) do move "%%x" "M:\placeholder\"
for /r "M:\movies\new\" %%x in (*.*) do move "%%x" "M:\movies\new\"
for /r "M:\placeholder\" %%x in (*.txt) do move "%%x" "M:\original directory\"

Windows (and MacOS plus *ix) predate the numerous extensions created to hold video. The OS just doesn't know how to tell what is a video file and what isn't, so you will need to run that command line for each extension you wish to move.

Alternatively, move the *.txt files to another directory, move everything remaining, then move *.txt back, a la

for /r "M:\movies\new" %%x in (*.txt) do move "%%x" "M:\placeholder"

for /r "M:\movies\new" %%x in (.) do move "%%x" "M:\movies\new"

for /r "M:\placeholder" %%x in (*.txt) do move "%%x" "M:\original directory"

Windows (and MacOS plus *ix) predate the numerous extensions created to hold video. The OS just doesn't know how to tell what is a video file and what isn't, so you will need to run that command line for each extension you wish to move.

Alternatively, move the *.txt files to another directory, move everything remaining, then move *.txt back, a la

for /r "M:\movies\new\" %%x in (*.txt) do move "%%x" "M:\placeholder\"
for /r "M:\movies\new\" %%x in (*.*) do move "%%x" "M:\movies\new\"
for /r "M:\placeholder\" %%x in (*.txt) do move "%%x" "M:\original directory\"
Source Link
K7AAY
  • 9.7k
  • 6
  • 35
  • 67

Windows (and MacOS plus *ix) predate the numerous extensions created to hold video. The OS just doesn't know how to tell what is a video file and what isn't, so you will need to run that command line for each extension you wish to move.

Alternatively, move the *.txt files to another directory, move everything remaining, then move *.txt back, a la

for /r "M:\movies\new" %%x in (*.txt) do move "%%x" "M:\placeholder"

for /r "M:\movies\new" %%x in (.) do move "%%x" "M:\movies\new"

for /r "M:\placeholder" %%x in (*.txt) do move "%%x" "M:\original directory"