.bat variables in Switch
.bat variables in Switch
Is there a way to pull variables from a .bat file into Switch. I have a .bat file that executes a vbs script and was wondering if vbs variables could be pulled into switch through the batch file?
Re: .bat variables in Switch
I think you'd have to output it to stdout or stderr and then switch could capture that. It's not going to be able to search through external code to find variables.
Re: .bat variables in Switch
Or completely the long way - BAT file is effectively a TXT file. Rename BAT to TXT, so you can Pick up TXT file as XML (using an app for it) and the values shall be there. You may need to adjust some formatting of the BAT, so that it then is better structured as XML, or use RegEX to search through XML Key Values.
Have not tried it, as I never had a need for anything like that, but seems like it is worth a try.
Have not tried it, as I never had a need for anything like that, but seems like it is worth a try.