(I DIDN'T DO A BATCH WITH THIS STUFF YET)
I have a file called "worldcopy2.txt"
which inside has a full directory:
C:\Users\Robert\Desktop\myworld2
And I want to create a batch file to change the inside of the .txt
to only have the name of the last folder of the directory that be in the moment. For example:
If the .txt
file says C:\Users\Robert\Desktop\funinside
, the batch must change the .txt
to say inside only funinside
.
Must work with all the directories.
Translated with Google Translate.