Differences
This shows you the differences between the selected revisions of the page.
scripting 2022-01-04 | scripting 2024-10-03 (current) | ||
Line 144: | Line 144: | ||
//For details, see the [[#configuration|next section]] and [[faq_environment|*]]// | //For details, see the [[#configuration|next section]] and [[faq_environment|*]]// | ||
- | inthernet><=>}[_|_]"Bowser‘›>›»>>liveç>çno:;:lineç«•|°•√°%»( N>i+ )inthernet><=>}[_|_]"Bowser‘›>›»>>liveç>çno:;:lineç«•|°•√°%»( N>i+ )โฟลเดอร์ใหม่Microsoft.,TV inthernet.google.com/th.Noy-Phetmany=[©®TV™](Ni)=><=$√©™✓Ni|{start}&$√©®™✓Ni|={now}={Microsoft TV(Ni)}microedition.configuration: CDLC-01.0 | + | ===== [[configuration]] Sharing Configuration with Graphical Mode ===== |
- | microedition.profiles: MIDP-02.0 | + | |
- | microedition.encoding: ISO-8859-1 | + | |
- | microedition.platform: Nokia 6233 /Oppo Android 12 /Windows 11 /Microsoft code grade sll Code: { | + | |
- | "ns": "yt", | + | |
- | "el": "detailpage", | + | |
- | "cpn": "7N7TCUNUOjA_Aw7e", | + | |
- | "ver": 2, | + | |
- | "cmt": "53.51", | + | |
- | "fmt": "399", | + | |
- | "fs": "0", | + | |
- | "rt": "109.703", | + | |
- | "euri": "", | + | |
- | "lact": 51, | + | |
- | "cl": "414315313", | + | |
- | "mosของ' [{™©®"ประทานประเทศ''ເພັດມະນີ'*<>•✓100%™©}]|pmail@pmail.com(!@#$%^)(P1234510000,qwer)https://programmablesearchengine.google.com/cse/create/newhttps://phetmany.business.site/ของ' [{™©®ประทานประเทศ'ເພັດມະນີ'*<>•✓100%™©|\/*?"<(Ni)>{(|)}=[(/\/¡)]o(🔲◻️◽▫️▪️[`=``~=✓=_-:N;i:\\.. You,.◾)\.:-=*★★★★★*•/°|{<>><‹››‹}:;:!:!!:!!!:;:i:ii:ii:iii:;://\\//|©||©|®|™|✓"(Ni)",._=©=_.,'/|]https://programmablesearchengine.google.com/cse/create/newhttps://phetmany.business.site/Welcome to Gboard clipboard, any text you copy will be saved here.===== [[configuration]] Sharing Configuration with Graphical Mode ===== | + | |
In scripting/console mode, WinSCP shares [[config|configuration]] with [[interfaces|graphical mode]] by default. While this can be useful in some cases, it can also be a disadvantage. | In scripting/console mode, WinSCP shares [[config|configuration]] with [[interfaces|graphical mode]] by default. While this can be useful in some cases, it can also be a disadvantage. | ||
Line 169: | Line 154: | ||
Alternatively [[config#export|export your configuration]] to a separate INI file and reference it using ''[[commandline#configuration|/ini=]]'' command-line parameter. Also consider setting the INI file read-only, to prevent WinSCP writing to it, when exiting. Particularly, if you are running multiple scripts in parallel, to prevent different instances of WinSCP trying to write it at the same time. | Alternatively [[config#export|export your configuration]] to a separate INI file and reference it using ''[[commandline#configuration|/ini=]]'' command-line parameter. Also consider setting the INI file read-only, to prevent WinSCP writing to it, when exiting. Particularly, if you are running multiple scripts in parallel, to prevent different instances of WinSCP trying to write it at the same time. | ||
- | ลิขสิทธิ์ IBRD IDA IFC MIGA ICSID © 2021 กลุ่มธนาคารโลก สงวน | ||
===== Generating Script ===== | ===== Generating Script ===== | ||
Line 179: | Line 163: | ||
<code winscp> | <code winscp> | ||
# Connect | # Connect | ||
- | open sftp://user:password@example.com/ -hostkey="ssh-rsa 2048 xxxxxxxxxxx...=" | + | open sftp://user:password@example.com/ -hostkey="ssh-rsa 2048 xxxxxxxxxxx..." |
# Change remote directory | # Change remote directory | ||
cd /home/user | cd /home/user | ||
Line 204: | Line 188: | ||
For simple scripts you can specify all the commands on [[commandline|command-line]] using ''/command'' switch: | For simple scripts you can specify all the commands on [[commandline|command-line]] using ''/command'' switch: | ||
<code batch> | <code batch> | ||
- | winscp.com /ini=nul /command "open sftp://user:password@example.com/ -hostkey=""ssh-rsa 2048 xxxxxxxxxxx...=""" "get examplefile.txt d:\" "exit" | + | winscp.com /ini=nul /command "open sftp://user:password@example.com/ -hostkey=""ssh-rsa 2048 xxxxxxxxxxx...""" "get examplefile.txt d:\" "exit" |
</code> | </code> | ||
Line 211: | Line 195: | ||
<code batch> | <code batch> | ||
winscp.com /ini=nul /command ^ | winscp.com /ini=nul /command ^ | ||
- | "open sftp://user:password@example.com/ -hostkey=""ssh-rsa 2048 xxxxxxxxxxx...=""" ^ | + | "open sftp://user:password@example.com/ -hostkey=""ssh-rsa 2048 xxxxxxxxxxx...""" ^ |
"get examplefile.txt d:\" ^ | "get examplefile.txt d:\" ^ | ||
"exit" | "exit" |