I am trying to run a batch file that gets a variable from WSH script. When I run the script I get the correct output but I can't seem to set it to a variable
@if (@codesection == @batch) @then
cscript //nologo //e:JScript "%~f0"
set getclip=cscript //nologo //e:jscript "%f~0"
echo "%getclip%"
pause
goto :EOF
@end
WSH.Echo(WSH.CreateObject('htmlfile').parentWindow.clipboardData.getData('text'));
the second line echos the clipboard but not the getclip variable