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
--------
Code: Select all
ex. %~n0 = Test.bat
How do I change "Test.bat" to the string "---------" ?
Test.bat
--------
Code: Select all
wmic process where "name='cmd.exe' and commandline like '%%scriptname%%'" call setpriority "high"
Code: Select all
Script Name
-----------
Code: Select all
ERROR: a.7z : Cannot open encrypted archive. Wrong password?
Code: Select all
setlocal enabledelayedexpansion enableextensions
set name1=1
setlocal disabledelayedexpansion enableextensions
set name2=2
setlocal enabledelayedexpansion enableextensions
set name3=3
endlocal
Code: Select all
call exit