Differences
This shows you the differences between the selected revisions of the page.
library_session_movefile 2012-05-31 | library_session_movefile 2024-10-25 (current) | ||
Line 1: | Line 1: | ||
====== Session.MoveFile Method ====== | ====== Session.MoveFile Method ====== | ||
Moves remote file to another remote directory and/or renames remote file. | Moves remote file to another remote directory and/or renames remote file. | ||
- | |||
- | &future_feature | ||
===== Syntax ===== | ===== Syntax ===== | ||
Line 10: | Line 8: | ||
<code vbnet *> | <code vbnet *> | ||
- | Public Sub MoveFile(ByVal sourcePath As String, ByVal targetPath As String) | + | Public Sub MoveFile(sourcePath As String, targetPath As String) |
</code> | </code> | ||
Line 16: | Line 14: | ||
^ Name ^ Description ^ | ^ Name ^ Description ^ | ||
| string sourcePath | Full path to remote file to move/rename. | | | string sourcePath | Full path to remote file to move/rename. | | ||
- | | string targetPath | Full path to new location/name to move/rename the file to. | | + | | string targetPath | Full path to new location and name((The name must be included or the target page has to end with a slash.)) to move/rename the file to. | |
===== Exceptions ===== | ===== Exceptions ===== | ||
Line 25: | Line 23: | ||
| TimeoutException | Timeout waiting for ''winscp.com'' to respond. | | | TimeoutException | Timeout waiting for ''winscp.com'' to respond. | | ||
+ | ===== Example ===== | ||
+ | |||
+ | ==== Real-Life Example ==== | ||
+ | |||
+ | * [[script_locking_files_while_uploading|*]]; | ||
+ | * [[library_example_advanced_rename|*]]. |