commandline » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2022-10-07 | 2022-10-07 | ||
no summary (83.86.89.78) (hidden) (untrusted) | no summary (83.86.89.78) (hidden) (untrusted) | ||
Line 1: | Line 1: | ||
====== Command-line Options ====== | ====== Command-line Options ====== | ||
- | @echo off | + | ===== [[parameters]] Parameters ===== |
+ | Parameters for ''[[executables|winscp.exe]]'' executable: | ||
+ | <code batch> | ||
+ | winscp.exe site|workspace|folder | ||
+ | winscp.exe <session_url>[/path/[file]] | ||
+ | winscp.exe [mysession] [/sessionname=<name>] | ||
+ | winscp.exe [mysession] [/newinstance] | ||
+ | winscp.exe [mysession] /edit <path> | ||
+ | winscp.exe [mysession] /browse[=<file>] | ||
+ | winscp.exe [mysession] /synchronize [local_directory] [remote_directory] [/defaults[=secs]] | ||
+ | winscp.exe [mysession] /keepuptodate [local_directory] [remote_directory] [/defaults[=secs]] | ||
+ | winscp.exe [mysession] /refresh [path] | ||
+ | winscp.exe [mysession] /upload file1 file2 file3 ... [/defaults[=secs]] | ||
+ | winscp.exe [mysession] [/privatekey=<file> [/passphrase=<passphrase>]] | ||
+ | winscp.exe [mysession] [/hostkey=<fingerprint>] | ||
+ | winscp.exe [mysession] [/username=<user>] [/password=<pass>] | ||
+ | winscp.exe [mysession] [/clientcert=<file> [/passphrase=<passphrase>]] | ||
+ | winscp.exe [mysession] [/certificate=<fingerprint>] | ||
+ | winscp.exe [mysession] [/passive[=on|off]] [/implicit|explicit] | ||
+ | winscp.exe [mysession] [/timeout=<sec>] | ||
+ | winscp.exe [mysession] [/rawsettings setting1=value1 setting2=value2 ...] | ||
+ | winscp.exe [/console] [/script=<script_file>] [/command command1 command2 ...] | ||
+ | [/parameter // param1 ...] | ||
+ | winscp.exe [/log=<logfile> [/loglevel=<level>] [/logsize=[<count>*]<size>]] | ||
+ | [/xmllog=<logfile> [/xmlgroups]] | ||
+ | winscp.exe [/ini=<inifile>] | ||
+ | winscp.exe [/rawconfig config1=value1 config2=value2 ...] | ||
+ | winscp.exe [/rawtransfersettings setting1=value1 setting2=value2 ...] | ||
+ | winscp.exe /batchsettings <site_mask> setting1=value1 setting2=value2 ... | ||
+ | winscp.exe /keygen keyfile [/output=<file>] [/changepassphrase] [/comment=<text>] | ||
+ | winscp.exe /update | ||
+ | winscp.exe /info | ||
+ | winscp.exe /help | ||
+ | </code> | ||
- | "C:\WinSCP\WinSCP.com" ^ | + | Parameters for ''[[executables|winscp.com]]'' executable: |
- | · /command ^ | + | <code batch> |
- | ····"open sftp://respectuser:%%23%%40%%25asda231@respect-zorggroep-test.westeurope.cloudapp.azure.com/ -hostkey=""ssh-ed25519 255 j0CEyuIib1XChID3fbj+rFQ79bsvktddlwE8n5hzLp4=""" ^ | + | winscp.com [/script=script_file] [/command command1 command2 ...] |
- | ····"cd /CardsOnlineExport" ^ | + | ···········[/parameter // param1 ...] |
- | ····"lcd C:\WinSCP\Scripts\CardsOnline\downloads" ^ | + | winscp.com [/stdout[=binary|chunked]] [/stdin] |
- | ····"get topdesk.csv" ^ | + | winscp.com [/log=<logfile> [/loglevel=<level>] [/logsize=[<count>*]<size>]] |
- | ····"exit" | + | ···········[/xmllog=<logfile> [/xmlgroups]] [/nointeractiveinput] |
- | + | winscp.com [/ini=<inifile>] | |
- | set WINSCP_RESULT=%ERRORLEVEL% | + | winscp.com [/rawconfig config1=value1 config2=value2 ...] |
- | if %WINSCP_RESULT% equ 0 ( | + | winscp.com /batchsettings <site_mask> setting1=value1 setting2=value2 ... |
- | ··echo Success | + | winscp.com /keygen keyfile [/output=<file>] [/changepassphrase] [/comment=<text>] |
- | ) else ( | + | winscp.exe /info |
- | ··echo Error | + | winscp.com /help |
- | ) | + | </code> |
- | + | ||
- | powershell.exe -file "C:\WinSCP\Scripts\CardsOnline\Update_AD_Mifare.ps1" | + | |
- | + | ||
- | IF EXIST "C:\WinSCP\Scripts\CardsOnline\downloads\screencheck_topdesk_cardinfo.csv" DEL /F "C:\WinSCP\Scripts\CardsOnline\downloads\screencheck_topdesk_cardinfo.csv" | + | |
- | + | ||
- | ren "C:\WinSCP\Scripts\CardsOnline\downloads\topdesk.csv" screencheck_topdesk_cardinfo.csv | + | |
- | + | ||
- | powershell.exe -file "C:\WinSCP\Scripts\CardsOnline\screencheck_to_topdesk_upload.ps1" | + | |
- | + | ||
- | exit /b %WINSCP_RESULT% | + | |
==== [[session]] Session ==== | ==== [[session]] Session ==== |