First post, by nvm
I'm trying to write some dos batch script for manipulating some paths. I haven't done this in years so I might be rusty.
The path is relative and given from the command line as argument
@echo off
set wpath=%1
@echo.%wpath%
set newpath=%wpath:~0,-4%
@echo.%newpath%
The thing I'm trying to accomplish is to get rid of the extension
script.bat whatever/test.txt
whatever/test.txt
whatever/test
But I'm getting
script.bat whatever/test.txt
whatever/test.txt
<emptyline>
I'm using DOSBox version 0.74 and this as a reference