Rename a virtual directory.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim iisLocation As String
Dim oldDirectoryName As String
Dim newDirectoryName As String
Dim status As String
Dim value As Boolean
value = IISHelper.RenameVirtualDirectory(iisLocation, oldDirectoryName, newDirectoryName, status) |
Parameters
- iisLocation
- The Active Directory path of the IIS website. Use GetIISLocation method to get the path.
- oldDirectoryName
- The old virtual directory name.
- newDirectoryName
- The new virtual directory name.
- status
- The output status message.
Return Value
true if vdir rename succeeds, false if not
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also