I am trying to find a script that will work in Windows and prefix all files in a folder with the containing folder name.
For example, in the folder
C:\FolderName1 there are 3 files:
hello.jpg test.txt monday.docx
After the script has been run for the above files, the names will be as follows:
FolderName1 - hello.jpg FolderName1 - test.txt FolderName1 - monday.docx
I don't mind which scripting language this is in, but I haven't been able to find a solution anywhere.
Thanks in advance.