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 offset 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.txtwhatever/test.txtwhatever/test
But I'm getting
script.bat whatever/test.txtwhatever/test.txt<emptyline>
I'm using DOSBox version 0.74 and this as a reference