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
--------
Moderator: DosItHelp
Code: Select all
ex. %~n0 = Test.bat
How do I change "Test.bat" to the string "---------" ?
Test.bat
--------
PiotrMP006 wrote: ↑10 Jan 2024 02:07Hi
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 --------