How do you perform a command on multiple files? I have tried different variations such as:

move test+test1 test2 
move "test""test1" test2

I have also tried the absolute file paths but no attempt has worked. I want to pick out specific files in the directory. Is there no other way except doing it individually or an advanced for loop.

Use a FOR loop
example:
move any directory that starts with test in its name to a directory named newfolder.

FOR /D %A IN ("test*") DO MOVE %A newfolder

/D : is for directories %A : when used in a script, it must be doubled %% Further reading about FOR

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.