Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

get filename without extension in BAT (Users)

posted by stabud, 03.05.2023, 07:51

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 ???

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 53 users online (1 registered, 52 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum