Page 1 of 1

running script with several commands

Posted: 03 Jul 2008 13:28
by jcmn
I have a script like this:

::#1016;copyto T:\prt\icor2008
::#1016;copyto T:\cbr\icor2008
::#1016;copyto T:\lsb\icor2008
::#1016;copyto T:\evr\icor2008
::#1016;copyto T:\far\icor2008
::#1016;copyto T:\ang\icor2008
::#1016;copyto T:\fnc\icor2008

but when in the catalog I run it I get a popup menu where I have to choose one of the lines. What I want is to have all the lines executed.

Re: running script with several commands

Posted: 03 Jul 2008 13:42
by jacky
Well, I don't think you need to focus list each time, but to get everything executed at once it needs to be seen as one script, so you need to put a ; after your copyto commands and put everything on the same line (or multiple lines with indentation).

For example this should work :

Code: Select all

focus list;
 copyto T:\prt\icor2008;
 copyto T:\cbr\icor2008;
 copyto T:\lsb\icor2008;
 copyto T:\evr\icor2008;
 copyto T:\far\icor2008;
 copyto T:\ang\icor2008;
 copyto T:\fnc\icor2008;

Posted: 03 Jul 2008 14:57
by jcmn
Thanks

Only one more minor question.

If I want to overwrite in destination the files copied, how do i get it in the script without having to say yes to all the prompts?