Return result of LS in exec command

Advertisement

johnnypicnic
Joined:
Posts:
2

Return result of LS in exec command

I'm using the [m]ls[m] command to retrieve a list of files from a remote folder but the I can't get the result to output in the console.
"C:\Program Files (x86)\WinSCP\WinSCP.exe"  /log="C:\Temp\WinSCP.log" /ini=nul /command "open sftp://user:12345@sftp.site.com/ -hostkey=""ssh-rsa 2048 stX..........""" "ls /folder/sub_folder" "exit"
Ultimately I would like to run this from within Node-Red and have the list as an array.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum