The text editors that are used when saving the batch file are also factors.
Hi.
I need a CMD/Batch/Script command to create a txt or nfo file with this text:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<movie>
<title></title>
<runtime></runtime>
</movie>
And the filename of the file should be the same as every file or folder in the path.
In the middle of <title></title> the filename should be put.
Exampel:
I have a file or folder (take the one that easiest) Aristocats.mkv.
I want to have a file that has the name Aristocats.nfo or Aristocats.txt.
In the file i want this:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<movie>
<title>Aristocats</title>
<runtime></runtime>
</movie>
I have over 1000 folders or files that need this nfo file, is it possible?
I found this:
for %i in (*) do md "%~ni" && move "%~i" "%~ni"
It creates a folder for each file and moves it in to it.
I have googled for hours but i dont find a software or a command that do this.
Is it even possible or should i give up?