FTPS Scripting Help

Advertisement

kmonday
Joined:
Posts:
1

FTPS Scripting Help

What is wrong with this script??

"C:\Program Files\WinSCP\WinSCP.com" /command "option batch on" "option confirm off" "open ftps"://kmonday:password123@ftp.testsite.com:990 -explicitssl -certificate="dc:cf:07:f4:8d:12:40:bf:a6:cb:7a:e7:e9:37:17:9a:f6:93:d0:77" "cd /file/path/Orders" "get filename.txt"

Reply with quote

Advertisement

Guest

Re: FTPS Scripting Help

kmonday wrote:

What is wrong with this script??

"C:\Program Files\WinSCP\WinSCP.com" /command "option batch on" "option confirm off" "open ftps"://kmonday:password123@ftp.testsite.com:990 -explicitssl -certificate="dc:cf:07:f4:8d:12:40:bf:a6:cb:7a:e7:e9:37:17:9a:f6:93:d0:77" "cd /file/path/Orders" "get filename.txt"

Maybe WinSCP.com should be WinSCP.exe?

Reply with quote

Guest

Re: FTPS Scripting Help

kmonday wrote:

What is wrong with this script??

"C:\Program Files\WinSCP\WinSCP.com" /command "option batch on" "option confirm off" "open ftps"://kmonday:password123@ftp.testsite.com:990 -explicitssl -certificate="dc:cf:07:f4:8d:12:40:bf:a6:cb:7a:e7:e9:37:17:9a:f6:93:d0:77" "cd /file/path/Orders" "get filename.txt"

Shouldn't it be "open sftp"://kmonday:

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

Re: FTPS Scripting Help

You have quotes wrong:

"C:\Program Files\WinSCP\WinSCP.com" /command "option batch on" "option confirm off" "open ftps://kmonday:password123@ftp.testsite.com:990 -explicitssl -certificate=""dc:cf:07:f4:8d:12:40:bf:a6:cb:7a:e7:e9:37:17:9a:f6:93:d0:77""" "cd /file/path/Orders" "get filename.txt"    

See https://winscp.net/eng/docs/scripting#syntax

Reply with quote

Advertisement

You can post new topics in this forum