I use pscp to copy a file from Windows to Unix and I run it using VBA. After pscp command how will I ensure that file is transferred successfully?
pscp
shell "pscp -P 22 -pw abcd test.csv [email protected]:/u01/test"
Test pscp exit code. 0 is success, 1 is error.
0
1
For examples of code that test exit code of an application, see:
2.1m questions
2.1m answers
60 comments
57.0k users