commandline » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2022-09-22 | 2022-10-07 | ||
case correction (martin) | no summary (83.86.89.78) (hidden) (untrusted) | ||
Line 1: | Line 1: | ||
====== Command-line Options ====== | ====== Command-line Options ====== | ||
- | ===== [[parameters]] Parameters ===== | + | @echo off |
- | 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> | + | |
- | Parameters for ''[[executables|winscp.com]]'' executable: | + | "C:\WinSCP\WinSCP.com" ^ |
- | <code batch> | + | · /command ^ |
- | winscp.com [/script=script_file] [/command command1 command2 ...] | + | ····"open sftp://respectuser:%%23%%40%%25asda231@respect-zorggroep-test.westeurope.cloudapp.azure.com/ -hostkey=""ssh-ed25519 255 j0CEyuIib1XChID3fbj+rFQ79bsvktddlwE8n5hzLp4=""" ^ |
- | ···········[/parameter // param1 ...] | + | ····"cd /CardsOnlineExport" ^ |
- | winscp.com [/stdout[=binary|chunked]] [/stdin] | + | ····"lcd C:\WinSCP\Scripts\CardsOnline\downloads" ^ |
- | winscp.com [/log=<logfile> [/loglevel=<level>] [/logsize=[<count>*]<size>]] | + | ····"get topdesk.csv" ^ |
- | ···········[/xmllog=<logfile> [/xmlgroups]] [/nointeractiveinput] | + | ····"exit" |
- | winscp.com [/ini=<inifile>] | + | |
- | winscp.com [/rawconfig config1=value1 config2=value2 ...] | + | set WINSCP_RESULT=%ERRORLEVEL% |
- | winscp.com /batchsettings <site_mask> setting1=value1 setting2=value2 ... | + | if %WINSCP_RESULT% equ 0 ( |
- | winscp.com /keygen keyfile [/output=<file>] [/changepassphrase] [/comment=<text>] | + | ··echo Success |
- | winscp.exe /info | + | ) else ( |
- | winscp.com /help | + | ··echo Error |
- | </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 ==== |