When using the "exit" command it interrupts the entire process - Windows Task Scheduler

Advertisement

Vinycius
Joined:
Posts:
2

When using the "exit" command it interrupts the entire process - Windows Task Scheduler

Hello, I made a batch script to download a compressed file, follow the compressed .bat file for viewing the code.
Apparently, he is connecting and downloading the file correctly, however when using Windows Tasker Scheduler and executes the command exit, he closes the batch file completely, interrupting the execution, how can I correct this, being that it manually completes the whole process smoothly?

Sorry my English bad!
Last edited by Vinycius on 2021-05-16 18:22; edited 2 times in total

Reply with quote

Advertisement

Vinycius

Resolved

I discovered the problem, in fact it is because it is necessary to enter the folder where the file will be extracted, the problem itself was not in WinSCP, but in the code, it was only necessary to insert a cd after downloading the file.

Reply with quote

Advertisement

You can post new topics in this forum