[This is preliminary documentation and is subject to change.]

Moving (or renaming) a folder loses the session variable in asp.net. So, this is an attempt to simulate the move method by a copy and delete. A mojor pain in the *** but there seems to be no other way to do it or is there...?

Namespace:  OfficeClip.Utils
Assembly:  OfficeClip.Utils (in OfficeClip.Utils)
Version: 8.1.1.0

Syntax

C#
public static bool MoveFolder(
	string sourcePath,
	string destPath,
	bool isKeep,
	bool isRecursive
)
Visual Basic (Declaration)
Public Shared Function MoveFolder ( _
	sourcePath As String, _
	destPath As String, _
	isKeep As Boolean, _
	isRecursive As Boolean _
) As Boolean
Visual C++
public:
static bool MoveFolder(
	String^ sourcePath, 
	String^ destPath, 
	bool isKeep, 
	bool isRecursive
)

Parameters

sourcePath
Type: System..::.String
The source folder
destPath
Type: System..::.String
The destination folder
isKeep
Type: System..::.Boolean
if true the source folder is kept (similar to Copy)
isRecursive
Type: System..::.Boolean
If false, then only one level of directory is copied, if true, copies recursively

Return Value

True if Move Folder is Successful

See Also