running script with several commands

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
jcmn
Posts: 179
Joined: 18 Sep 2007 11:34
Location: portugal

running script with several commands

Post 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.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: running script with several commands

Post 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;
Proud XYplorer Fanatic

jcmn
Posts: 179
Joined: 18 Sep 2007 11:34
Location: portugal

Post 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?

Post Reply