win32file.SetVolumeMountPoint

PyUnicode = SetVolumeMountPoint(VolumeMountPoint, VolumeName )

Mounts the specified volume at the specified volume mount point.

Parameters

VolumeMountPoint : PyUnicode

The mount point - must be an existing empty directory on an NTFS volume

VolumeName : PyUnicode

The volume to mount there

Comments

Accepts keyword args.

Note that both parameters must have trailing backslashes.

This method exists only on Windows 2000 or later. On earlier platforms, NotImplementedError will be raised.

Example

Usage

SetVolumeMountPoint('h:\\tmp\\','c:\\')

Return Value

The result is the GUID of the volume mounted, as a string.