Question

Locked

How to get return value in Shell function.

By atul-sharma ·
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

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Shell isn't going to cut it

by Tony Hopkinson In reply to How to get return value i ...
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.

Back to Networks Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums