You basically add new "Process task" into your script and there you specify command line to execute. You can add this task into any place, either before or after your main copy task, or between several copy tasks.
Thanks for your reply, but there is still another problem. THe script, when launceh "by hand" works fine. When launched by the process task, it goes out without waiting end of the process, I did check "wait for completion". Some idea of what is happening ?
When executing some commands it helps if you start your command line with
cmd /c <your command line>
So likely you need to use
cmd /c yourfile.cmd
Oh"yes, I was using : cmd.exe /c "C:\usr\local\bin\StopSELECTLINE_SQL.cmd" since a moment ... and in the cmd, I have a line in the beginning to stop SQL: net stop MSSQL$SELECTLINE So I can quietely copy the database files on a NAS without risking that they are on use.