win32file.SetVolumeMountPoint

string = SetVolumeMountPoint(VolumeMountPoint, VolumeName )

Mounts the specified volume at the specified volume mount point.

Parameters

VolumeMountPoint : string

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

VolumeName : string

The volume to mount there

Comments

Accepts keyword args.

Note that both parameters must have trailing backslashes.

Example

Usage

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

Return Value

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