The next release (v0.4) is converting it to a function which is writing the echo to a log file. But if you want to use ConsoleWrite you just need to modify the VATable.txt file (beginning from v0.4). Just change the line where you can find the text WScript.Echo: WScript.Echo|ConsoleWrite|0|0|1| If you want to use the MsgBox, you must write a wrapper arround MsgBox: e.g. Func _MyMsgBox($strText)
MsgBox(0,"Some Text",$strText)
EndFuncSave this wrapper in a Include file (e.g msg.au3) and change the line in the VATable.txt file like this: WScript.Echo|_MyMsgBox|0|0|1|msg.au3But keep in mind. WScript.Echo can be used from Version 0.4. It should be release tomorrow. I hope i could help you.
This is a converter for a VBScript (5.6) to AutoIt (3.1.1) converter. i hope it is useful. There are many thinks to add at the moment. To test it you need all attach files. Comments are welcome. Version 0.4 - Fixing error message in GUI - Workaround for wscript.echo - Better handling of parenthesis for sub's - Implement ReDim - Set default destination file name in gui - Added some new commands in VATable.txt - Improvements for select constructs Version 0.3 - Added command line switch (vaconvert VBSCRIPTFILE) - Added Gui to select source and destination file (tahnks to gafrost) - Better handlung for prodedure calls - Fixing other errors (e.g. endless loop) Version 0.2 - Add some simple replace commands (VATable.txt) - Improve Select case - Find variables without Dim - Find Constants - Add List of VBCommands (VACommands.txt) Version 0.1 - Better function handling - Added most VBScript functions - Include handling Version 0.01 - First public release Added v0.4 10.06.2005 Added v0.3 08.06.2005 Added v0.2 06.06.2005 Added v0.1 05.06.2005 Added v0.01 04.06.2005 VAConvert.04.zip
Hello,
i am trying to capture the output of the following command to a file or variable with AutoIT3 (build 103).
RunWait(@ComSpec & " /c " & @SystemDir & "\CScript.exe " & $DestDir & "\script.vbs >>" & $DestDir & "\script.log", $DestDir, @SW_MINIMIZE)
If i look inside the file, i can see only the first lines. The rest was never written to this file. Is there an other way to capture the output ?
Thanks.
Bernd