Tuesday 15 March 2022

read in variable in windows .bat file

usage

test.bat MyUsername MYPW


script-----------------

 @echo off

set username=%1

set password=%2


echo %username%

echo %password%

pause

script-----------------


plink can be used to automate ssh tasks

No comments:

Post a Comment