Saving Env Variable as a file using SFTP
Hi all,
I have been reading about
I have an env variable, and I want to save it as a text in the SFTP. It would be the equivalent of the command:
Here is the script structure:
For particular reasons, I want to avoid saving a local file before uploading it.
I have been reading about
/stdin
and /stdout
but could not find the answer.
I have an env variable, and I want to save it as a text in the SFTP. It would be the equivalent of the command:
echo %tfile% > new.txt
set tfile="I want this as a text file in the server" winscp /log="C:\sftp\logwinscp.log" /ini=nul /command ^ "open sftp://user@site.files.com/ -hostkey=""ssh-rsa 4096 xxxxxxxxxxxxxcvvieGg1R2Vx8/5VSw="" -privatekey=""C:\sftp\private.ppk""" ^ "put ????? new.txt" ^ "exit"