Page 1 of 1

Executing multiple commands from a file

Posted: Wed Mar 28, 2007 9:05 am
by via
Hi,
I want to use copy and remove commands both in a single execute command activity in a job sequence.
The copy command is
cp C:\createfile.txt C:\create, AND the remove command is
rm C:\deletefile.txt

I typed both commands by placing a comma between two commands in the execute command activity.Its not getting executed.

I tried to keep both commands in seperate file and mentioned that file in the execute command activity.Its not getting executed.I tried with file extensions .txt, .bat, .exe.
Any ideas? I am new to Sequences..
Thanks..

Posted: Wed Mar 28, 2007 9:07 am
by DSguru2B
Search reveal this,

Posted: Sun Apr 01, 2007 11:43 am
by via
Thank you Brian..

Posted: Sun Apr 01, 2007 12:32 pm
by info_ds

Code: Select all

Thank you Brian.. 
DsGuru2B, I didnt know that your name was Brian :twisted:

Re: Executing multiple commands from a file

Posted: Sun Apr 01, 2007 2:55 pm
by chulett
via wrote:I tried to keep both commands in seperate file and mentioned that file in the execute command activity.Its not getting executed.I tried with file extensions .txt, .bat, .exe.
The .bat extension should have worked. What happened when you tried that? :?

ps. You really don't want to be using the root of your C: drive for file storage.

Posted: Sun Apr 01, 2007 4:03 pm
by DSguru2B
info_ds wrote: DsGuru2B, I didnt know that your name was Brian :twisted:
Yea, I didnt know either. :wink:

Posted: Mon Apr 02, 2007 3:59 am
by kumar_s
If that helped to solve your problem, you can mark the topic as resolved and leave few words on how you solved it. Becasue sometime your post will be linked by some one else.

Posted: Tue Apr 03, 2007 7:55 am
by via
Thanks for all the replies.I tried with pipe delimited between two commands and it worked.

Thanks