I have several files which were recovered from a backup but have the structure (file location) as the file name.
C\Users\Welcome\Desktop\Doc1.docx F\New folder\concerts\0904M002.WAV
I want to make a script that takes these names one by one and creates the respective folders and place the file inside the folder.
for eg: F\New folder\concerts\0904M002.WAV
--> Make a folder "F" on current directory then cd to F make a folder "New folder" similarly make "concerts" (or directly do mkdir F\New folder\concerts)
--> rename the file "F\New folder\concerts\0904M002.WAV " to "0904M002.WAV " and move it to the newly created folder "F\New folder\concerts\"
Can some one help me with the script? Thanks