How to replace the script name %~n0 with a string of "-" characters of length %~n0?
Posted: 10 Jan 2024 02:07
Hi
How to replace the script name %~n0 with a string of "-" characters of length %~n0?
How to replace the script name %~n0 with a string of "-" characters of length %~n0?
Code: Select all
ex. %~n0 = Test.bat
How do I change "Test.bat" to the string "---------" ?
Test.bat
--------