get filename without extension in BAT (Users)
> Hi All!
>
> When specified on the command line: test.bat C:\test.txt
>
> echo %1 ->>> ok!! Filename
> echo "%~n1" ->>> does not work in freedos
>
> How to get file C:\test from file C:\test.txt ???
Please elaborate on exactly what you are trying to do
and what the _expected_ result should be.
In which OS _does_ it work correctly ?
---
--
http://glennmcc.org/
Complete thread:
- get filename without extension in BAT - stabud, 03.05.2023, 07:51 (Users)
- get filename without extension in BAT - glennmcc, 04.05.2023, 02:47
- get filename without extension in BAT - stabud, 04.05.2023, 04:35
- get filename without extension in BAT - glennmcc, 04.05.2023, 17:09
- get filename without extension in BAT - ecm, 04.05.2023, 17:57
- get filename without extension in BAT - glennmcc, 04.05.2023, 17:09
- get filename without extension in BAT - stabud, 04.05.2023, 04:35
- get filename without extension in BAT - jadoxa, 04.05.2023, 03:08
- get filename without extension in BAT - RayeR, 06.06.2023, 13:59
- get filename without extension in BAT - glennmcc, 04.05.2023, 02:47