Differences

This shows you the differences between the selected revisions of the page.

2021-03-31 2021-04-08
simplify by factoring out the email sending to separate guide + using code blocks for nicer code (martin) compound statement (martin)
Line 95: Line 95:
<code batch> <code batch>
-rem Generate temporary script to upload %1 +rem Generate a temporary script to upload %1 
-echo open mysession >&gt; script.tmp +
-echo put %1 &gt;> script.tmp +··echo open mysession 
-echo exit >> script.tmp+· echo put %1 
 +  echo &lt;nohilite>exit&lt;/nohilite> 
 +) > script.tmp
-rem Execute script+rem Execute the script
winscp.com /ini=nul /script=script.tmp winscp.com /ini=nul /script=script.tmp
-rem Delete temporary script+rem Delete the temporary script
del script.tmp del script.tmp
</code> </code>

Last modified: by martin