win32file.CreateSymbolicLink

CreateSymbolicLink(SymlinkFileName, TargetFileName, Flags, Transaction)

Creates a symbolic link (reparse point)

Parameters

SymlinkFileName : PyUnicode

Path of the symbolic link to be created

TargetFileName : PyUnicode

The name of file to which link will point

Flags=0 : int

SYMBOLIC_LINK_FLAG_DIRECTORY and SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE are the only defined flags

Transaction=None : PyHANDLE

Handle to a transaction, as returned by win32transaction::CreateTransaction

Comments

This method only exists on Vista and later.

Accepts keyword args.

Requires SeCreateSymbolicLink priv.

If the Transaction parameter is passed in, CreateSymbolicLinkTransacted will be called