Sign in to follow this  
Followers 0
Darako

[Resolved]Equivalent "type" Dos command

6 posts in this topic

#1 ·  Posted (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 :mellow:. So I need copy *.txt >> Table.txt, with Type it doesn't work.

How to do?

Thanks in advance

Edited by Darako

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

I don't know use this function :mellow:

When I launch

Local $var = "Test"

ConsoleWrite("var=" & $var & @CRLF)

I see nothing.

Edited by Darako

Share this post


Link to post
Share on other sites

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 :mellow:

Edited by Darako

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Ok, is that what you want:

Func Tableau ($Source,$Destination)
    Run (@ComSpec & " /c copy " & $Source & "*.txt " & $Destination)
EndFunc
Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0