Skip to main content
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k
Source Link

Changing file names based on enclosing directory

Excuse the newby question but I have a number of unique directories which each contain a single file of a generic name.

enter image description here

What I would like to do is to move nd rename the files into a single directory

Preferably using wildcards but I guess you could also generate a list and cycle through it.

Help would be greatly appreciated.