0

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?

shell "pscp -P 22 -pw abcd test.csv user@XXX.com:/u01/test"
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
VichuCoder
  • 21
  • 3

1 Answers1

0

Test pscp exit code. 0 is success, 1 is error.

For examples of code that test exit code of an application, see:

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992