There's more than one file on each directories but only one is going to be renamed with the directory name. The others files remains the same. The file to be renamed has the same name over all directories.
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.