Print the file name with another extension (Batch-program)
- by Semyon Perepelitsa
Batch-program launchs with 1 parameter (full path to file)
program.cmd "C:\Path\To\File\Filename.txt"
Now, this program consists of 1 command:
echo %1
And it just prints an argument: C:\Path\To\File\Filename.txt for the upper example.
But I want it to print an argument (full path) with another extension, e.g. .exe. For the upper example, I want it to print C:\Path\To\File\Filename.exe.
How to make it do that?