I want to check return status of all commands in WinSCP but inside the script file only which is provided as command line argument to the WinSCP.com. I dont want to use other scripting languages for error checking and dont want to go for .NET framework. So is there any way to check success or failure status of commands in script file. In short I want alternative to %errorlevel% (in batch file)but which will work in WinSCP.
Thanks in advance.