Answers for "how to assign a value to a variable in batch script using powershell"

1

how to assign a value to a variable in batch script using powershell

@echo OFF
for /f %%a in ('powershell -file script.ps1') do set "pass=%%~a"
echo %pass%
Posted by: Guest on October-08-2020

Code answers related to "how to assign a value to a variable in batch script using powershell"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language