EZ Script example:
Wrong:
Shell("ipconfig > myIpAddress.txt")
Right
Shell("cmd /c ipconfig > myIpAddress.txt")
Apparently, this is because the Shell function (and the Application step) are subject to unexpected behavior when dealing with redirection characters such as | (pipe), < or >
An example of code that uses 2 of these characters:
Shell("cmd /c fciv.exe data.xml | find "."xml"" > data.xml.md5")
No comments:
Post a Comment