How to get return value in Shell function.

By atul-sharma ·
I am calling psftp.exe(using bat file) through my vb 6.0 program, In which I am using shell function(calling my bat file & Passing values) for this and also passing some parameter value shell function,But when I am executing this I am not getting fix return value after successfully execution Even if I am sending wrong password or server name this is not returning any error value.How I can know that my program execute successfully or not.


This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

Shell isn't going to cut it

by atul-sharma In reply to Shell isn't going to cut ...

Thanks for your reply,But still I am facing error.I am calling bat file in which I am calling to sftp and doing copy past action,But if I when I am passing wrong value(Password)they still giving me same value.

Collapse -

You have to pass the result

by Tony Hopkinson In reply to Shell isn't going to cut ...

back up the call chain if you can, so I suspect you need to pick up the the response from SFTP in the bat file and then your VB code could pick it up.

Related Discussions

Related Forums