Page 1 of 1

Launch a pocess from .bat

Posted: Fri Sep 05, 2008 5:25 pm
by pobrouwers
Hello,
Is it possible to execute a .bat file to launch a process ?
What is the syntax for the .bat ?

Thx

Re: Launch a pocess from .bat

Posted: Fri Sep 05, 2008 9:17 pm
by paulsimon
Yes it is. There was an executable to run a TIprocess posted in the last 5 months. Check the previous posts.

Regards


Paul Simon

Re: Launch a pocess from .bat

Posted: Sat Sep 06, 2008 9:17 am
by Martin Ryan
When somebody finds it, can you please put it in the Useful Code sticky post, crediting the author.

(I had a quick search but couldn't find it).

Cheers,
Martin

Re: Launch a pocess from .bat

Posted: Sat Sep 06, 2008 2:59 pm
by Mike Cowie
Martin Ryan wrote:When somebody finds it, can you please put it in the Useful Code sticky post, crediting the author.

(I had a quick search but couldn't find it).

Cheers,
Martin
Hi Martin,

I'll dig it up since I had originally posted a couple of the EXEs there (one to run a chore, one to run a process) - I first want to update the EXEs to eliminate a couple minor bugs, so look out for it in the next day or so.

Regards,
Mike

Re: Launch a pocess from .bat

Posted: Mon Sep 08, 2008 10:25 pm
by Eric
I found this site a year ago.
http://home.att.net/~gobruen/progs/dos_ ... batch.html

I think you want the call command.

Re: Launch a pocess from .bat

Posted: Mon Sep 08, 2008 10:28 pm
by Eric
Always considered creating the .bat file with TI ASCIIOutput() and the executing the BAT file, but never had a practical reason to do it. If you come up with anything let me know.

Re: Launch a pocess from .bat

Posted: Tue Sep 09, 2008 6:20 pm
by pobrouwers
Hi everybody,
I've found those exe and it's works... Place those 2 .exe to the folder bin of TM1 c:/program files/cognos/tm1/bin (normally)
read instruction in the attached text files...
let me know if you have a problem

Re: Launch a pocess from .bat

Posted: Tue Sep 09, 2008 7:51 pm
by Mike Cowie
pobrouwers wrote:Hi everybody,
I've found those exe and it's works... Place those 2 .exe to the folder bin of TM1 c:/program files/cognos/tm1/bin (normally)
read instruction in the attached text files...
let me know if you have a problem
pobrouwers,

You may have missed my above post in this thread (this relates only to the TIExecute.zip that you attached) - I had very recently updated our 2 TI process/chore executables and posted them in the "Useful Code" thread on the Cognos TM1 forum. It shows up in a sticky post near the top of the list of forum threads. The copy you attached in your post is much older, so you may want to update your attachment to the more recent copy. If it helps, the following should get you to the more recent post:

http://forums.olapforums.com/viewtopic. ... =214#p1621

The older EXE versions generally work, but may crash, for example if you get the parameters wrong.

Regards,
Mike

Re: Launch a pocess from .bat

Posted: Tue Mar 03, 2009 2:51 pm
by att
pobrouwers wrote:Hi everybody,
I've found those exe and it's works... Place those 2 .exe to the folder bin of TM1 c:/program files/cognos/tm1/bin (normally)
read instruction in the attached text files...
let me know if you have a problem
It does not work for me - can it be because we run TM1 on 64-bit server? We desperatly need to run TM1 processes from a script or command line...

Re: Launch a pocess from .bat

Posted: Wed Mar 04, 2009 1:25 pm
by Martin Erlmoser
what exactly doesn't work? error message?