![]() ![]() Specifies fingerprint of expected SSH host key (or several alternative fingerprints separated by semicolon). ![]() You can also specify host, username, port and protocol directly. Use name of the stored session (to open session, stored in folder, use path syntax “folder/session”). Open ] Įstablishes connection to given host. See also synchronize if you need to transfer modified or non-existing files only. Get public_html/index.html d:\www\about.* XML Log Elements: download, rm (with - delete) Cannot be combined with -resume.Įffective options: transfer, confirm, exclude, include, reconnecttime Cannot be combined with -append.Īppend source file to the end of target file ( SFTP protocol only). ![]() Use option command to set transfer options.ĭelete source remote file(s) after transfer.Īutomatically resume transfer if possible ( SFTP and FTP protocols only). To download more files to current working directory use. Filename can be replaced with wildcard to select multiple files. Destination directory must end with backslash. The last parameter specifies target local directory and optionally operation mask to store file(s) under different name. If more parameters are specified, all except the last one specify set of files to download. If only one parameter is specified downloads the file to local working directory. get \ ]ĭownloads one or more files from remote directory to local directory. WinScriptHost.Run Chr(34) & "C:\path\to\batch\mybatch.bat" & Chr(34), 0ĭownloads one or more files from remote directory to local directory. Set WinScriptHost = CreateObject("WScript.Shell") To call the batch file automatically in a minimized mode, I call from window's Task Scheduler this vbs script (the last 0 means minimized): Start /min winscp.exe /console /command "option batch on" "open "option confirm off" "put -delete % varname %" "exit" rar m -m5 % varname % "FolderWithFilesToCompress\*.jpg" set varname=myname-%mydate%-%mytime%.rar ![]() FOR /F "eol= tokens=1-2 delims=: " %%a IN ('TIME /t') DO SET mytime=%%a%%b Here's my batch file (it works on WinXP). You should do this manually.I've been using WinScp and a script to compress files at maximum compressión, name the file as name_YYMMDD-HHMM.rar, and send them to a remote server then I wanted to delete local files after a successful transfer. So it is not recommended to use the function to “rename” large files and directories.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |