Question Locked

How to get return value in Shell function.

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
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.

Regards
Atul

4 replies

by atul-sharma

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.

by tony hopkinson

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.

This discussion is closed to new replies.