build a script via batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
autonicknan
Posts: 19
Joined: 01 Mar 2013 11:44

build a script via batch

#1 Post by autonicknan » 04 Mar 2013 15:41

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

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: build a script via batch

#2 Post by foxidrive » 04 Mar 2013 15:54

You can use echo statements and redirect into a file to create a script.

Queue
Posts: 31
Joined: 16 Feb 2013 14:31

Re: build a script via batch

#3 Post by Queue » 04 Mar 2013 16:59

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

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: build a script via batch

#4 Post by foxidrive » 04 Mar 2013 23:47

Autoit might be a good way to automate it, or a macro program.

autonicknan
Posts: 19
Joined: 01 Mar 2013 11:44

Re: build a script via batch

#5 Post by autonicknan » 05 Mar 2013 01:24

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

Post Reply