I have a dos batch file running Sftp. Is it possible to return an errorlevel back to my batch file is sftp doesn't execute successfully.
Terry
Release news
- 2023-05-30 Nagwin 5.2.0
- 2023-05-23 Copssh server 7.13.2
- 2023-05-23 Copssh server 8.1.2
- 2023-03-29 Rsync Client Helper GUI 1.0.3.7
- 2023-03-29 Nagwin 5.1.2
Terry,
You are using sftp in a a script, try sftp -b batchfile host
and put all your sftp commands inside batchfile.
Then $? will return 1 if something failed.