Jump to content

[Resolved]Equivalent "type" Dos command


Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers

Ok, is that what you want:

Func Tableau ($Source,$Destination)
    Run (@ComSpec & " /c copy " & $Source & "*.txt " & $Destination)
EndFunc
Edited 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...