Sorry Martin, I mistakenly thought that
VBA.Shell
returned the Exit code, but now I understand it returns the Process ID.
VBA.Shell
returned the Exit code, but now I understand it returns the Process ID.
mkdir
aborted, the log shows the Exit code: 1.
. 2024-06-03 17:11:04.982 Script: Failed
. 2024-06-03 17:11:04.982 Script: Exit code: 1
mkdir
command fails.
open ftp://mincad:redacted.redacted.redacted.redacted -explicitssl -passive=on
mkdir "/root/folder"
cd "/root/folder"
put "c:\localfolder\file.exe" "file.exe"
exit
/root/folder
does not exist, but if it does exist, I get a fatal error:
> 2024-06-03 17:11:04.951 Script: mkdir "/root/folder"
. 2024-06-03 17:11:04.951 Creating directory "/root/folder".
> 2024-06-03 17:11:04.951 CWD /root
< 2024-06-03 17:11:04.966 250 CWD command successful
> 2024-06-03 17:11:04.966 MKD folder
< 2024-06-03 17:11:04.982 550 folder: File exists
. 2024-06-03 17:11:04.982 Asking user:
. 2024-06-03 17:11:04.982 Error creating folder '/root/folder'. ("folder: File exists")
< 2024-06-03 17:11:04.982 Script: Error creating folder '/root/folder'.
< 2024-06-03 17:11:04.982 Script: folder: File exists
. 2024-06-03 17:11:04.982 Answer: Abort
. 2024-06-03 17:11:04.982 Script: Failed
. 2024-06-03 17:11:04.982 Script: Exit code: 1
. 2024-06-03 17:11:04.982 Disconnected from server