Jump to content

Recommended Posts

Posted

Hi all,

Quick question. I am unsure if AutoIT will help me do what I want to accomplish. It would involve basically just batch-like commands for the CMD.EXE interface. What I would want to do create a program to pass the files in a folder through one exe program (with command line options). Then I would want to pass the resulting files through a different exe program, and then pass those files through a third exe program. The first will encode (audio files), the second will analyze track/album gain, and the third will verify the encoding/check for errors. I would like the interface to be as easy as selecting the folder, either checking options or just entering the options or command line variables, then letting it execute each of these three actions.

Will AutoIT automate these three CLI processes for me?

Does anyone have advice/input on using these types of programs to accomplish this?

Thanks!

Posted (edited)

Use StdOut and StdIn from the beta.

or you can just run @comspec /c 1st > 2nd > 3th > file.txt

Note that if you want to pass stdout to the stdin of another program, it's a pipe "|", not the redirection arrow ">". So:

Run(@comspec & " /c 1st.exe | 2nd.exe | 3rd.exe > file.txt")

If you ran the following with enough permissions:

Run(@comspec & " /c 1st.exe > 2nd.exe")

...it would have the unfortunate effect of overwriting 2nd.exe with the stdout text from 1st.exe.

:D

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Posted

Oh boy, I will need to do some reading a researching. I am too new to this, but with those tips I can search for those functions to start with.

Thanks to both!

Scott

Posted

Oh boy, I will need to do some reading a researching...

Depending upon how your programs work, it might be as simple as 3 RunWait lines of AutoIt3 code.

[size="1"][font="Arial"].[u].[/u][/font][/size]

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
  • Recently Browsing   0 members

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