Page 1 of 1

build a script via batch

Posted: 04 Mar 2013 15:41
by autonicknan
Hello,

Does anyone knows if there is any way to build a scripting file via batch scripting.
To be more specific, I have implemented some scripts in a scripting language, before running it I have to right click on a specific file and then press the build_all option.

Any idea on how should I begin?

Thanks
Nikos

Re: build a script via batch

Posted: 04 Mar 2013 15:54
by foxidrive
You can use echo statements and redirect into a file to create a script.

Re: build a script via batch

Posted: 04 Mar 2013 16:59
by Queue
I think he's asking for a way to call the ''build_all'' command on the script file (instead of, say, ''open'').

autonicknan, if you check what the build_all option is doing, you can call the same command directly via batch. Alternatively, there are some 3rd party utilities that will let you ShellExecute the script file with the action of your choosing.

Queue

Re: build a script via batch

Posted: 04 Mar 2013 23:47
by foxidrive
Autoit might be a good way to automate it, or a macro program.

Re: build a script via batch

Posted: 05 Mar 2013 01:24
by autonicknan
Hello,

Thanks for the responses!!

The answer was pretty easy but sometimes the mind stops. I had to check what the buil_all command doing as Queue pointed...Thanks for this :)

Now i want to execute the build_all command to all files that have a specific file name(let say load.ctl) under a path that contains several subfolders. I guess that this is easy but I am pretty newbie in batch scripting. I will try to implement it and may be I come back with some questions...

Thank u both!!

Nikos