|
How to pass values from script to external batch files I've a batch file and a ps1 script
Test1.bat
powershell somescripts.ps1
robocopy c:\ d:\ <filename.txt>
Somescripts.ps1
$filename = "abc.txt"
After ps1 completes, i wish to pass the $filename abc.txt *outside* to
robocopy command . Note that abc.txt was created in c:\ drive
How do i do that ? Must i use process.start method in the script ? |