How to use Copy command in TI Process

Post Reply
vins
Posts: 35
Joined: Wed Jul 31, 2013 4:54 pm
OLAP Product: TM1
Version: 10.1
Excel Version: 2010

How to use Copy command in TI Process

Post by vins »

Executecommand(); in TI process can be used to execute command line commands. I want to use "copy" command to merge two files into one file. Can you please help me with the code.

I am using below code in my TI Process. Its not throwing me an error but its not appending the content of files.

vFileName1 = 'D:\Tm1\MgmtStaff2014-04-17.txt';
vFileName3 = 'D:\Tm1\test.txt';
ExecuteCommand( 'CMD /C TYPE ' | vFilename1 | '>> ' | vFileName3,1);


Looking for your suggestion
cjsee
Posts: 6
Joined: Wed Mar 12, 2014 1:54 am
OLAP Product: Cognos Express
Version: TM1 10.1
Excel Version: 2010

Re: How to use Copy command in TI Process

Post by cjsee »

Hi,
This thread maybe helpful to you...
http://www.tm1forum.com/viewtopic.php?f=3&t=6231

Cheers,
CJ
vins
Posts: 35
Joined: Wed Jul 31, 2013 4:54 pm
OLAP Product: TM1
Version: 10.1
Excel Version: 2010

Re: How to use Copy command in TI Process

Post by vins »

Thanks for your precious advice.

It's working :)
Post Reply