Darako Posted May 30, 2010 Share Posted May 30, 2010 (edited) Hello, I search an equivalent command in audioit for "Type" (ms-dos command) hello.txt (hello all) wats.txt ( wats up?) type wats.txt >> hello.txt hello.txt (hello all wats up?) I tried FileCopy and FileWrite but It doesn't write in my second file . So I need copy *.txt >> Table.txt, with Type it doesn't work. How to do? Thanks in advance Edited May 30, 2010 by Darako Link to comment Share on other sites More sharing options...
Developers Jos Posted May 30, 2010 Developers Share Posted May 30, 2010 Consolewrite() ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Darako Posted May 30, 2010 Author Share Posted May 30, 2010 (edited) I don't know use this function When I launch Local $var = "Test" ConsoleWrite("var=" & $var & @CRLF) I see nothing. Edited May 30, 2010 by Darako Link to comment Share on other sites More sharing options...
UEZ Posted May 30, 2010 Share Posted May 30, 2010 If you want to print out ConsoleWrite() to cmd box you have to compile AutoIt script with #AutoIt3Wrapper_Change2CUI=y E.g.: #AutoIt3Wrapper_Change2CUI=y ConsoleWrite("Hallo world" & @CRLF) Compile example and start it in cmd box! BR, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Darako Posted May 30, 2010 Author Share Posted May 30, 2010 (edited) Thx. Finally I use: Func Tableau ($Source,$Destination) Run ("cmd.exe") sleep(500) Send("copy{space}") Send($Source) Send("*.txt{Space}") Send($Destination) Send("{Enter}exit{Enter}") EndFunc Thanks for your help. @Jos: Thanks Edited May 30, 2010 by Darako Link to comment Share on other sites More sharing options...
Developers Jos Posted May 30, 2010 Developers Share Posted May 30, 2010 (edited) Ok, is that what you want: Func Tableau ($Source,$Destination) Run (@ComSpec & " /c copy " & $Source & "*.txt " & $Destination) EndFunc Edited May 30, 2010 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now