Hi All,
I am trying to create a script where I can rename one file located on a directory with the directory name.
for example :-
Change abc123file.txt on directory mydir01 to mydir01.txt
The previous listing is mydir01\abc123file.txt and after the rename the listing should be mydir01\mydir01.txt and so on.
I have to do this over 167 directories. All those directories are located on a master directory.
Any suggestions would be welcomed.
Thanks,
Hector.
I am trying to create a script where I can rename one file located on a directory with the directory name.
for example :-
Change abc123file.txt on directory mydir01 to mydir01.txt
The previous listing is mydir01\abc123file.txt and after the rename the listing should be mydir01\mydir01.txt and so on.
I have to do this over 167 directories. All those directories are located on a master directory.
Any suggestions would be welcomed.
Thanks,
Hector.