![]() # powershell.exe -ExecutionPolicy Bypass -File "%EXTENSION_PATH%" ^ # -sessionUrl "!E" -remotePath "!/" -pattern "%Pattern%" ^ # -replacement "%Replacement%" -refresh -pause -sessionLogPath "%SessionLogPath%" ^ # %PreviewMode% !& # Renames remote files using a regular expression # RemoteFiles # 7 # WinSCP 5.19 # -run group "Rename" # Pattern -run textbox "Replace file name part matching this pattern:" # Replacement -run textbox "with:" # -run -config group "Options" # PreviewMode -run -config checkbox "&Preview changes" "-previewMode" ^ # "-previewMode" # -config group "Logging" # SessionLogPath -config sessionlogfile # param ( # Use Generate Session URL function to obtain a value for -sessionUrl parameter. The script is distributed in WinSCP installer as a WinSCP extension. ![]() The following example renames files using a regular expression. NET assembly for the actual rename (or generate a script file). But for more advanced rename operations, you need to use your favorite scripting language language, like PowerShell, to generate a new name and use WinSCP. Using File Explorer, you can select a file and hit the F2 key to rename it, but this experience also allows you to quickly rename multiple files in bulk. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |