how can I create Virtual Hard Drive (like Z:) that store it\'s files on physical hard drive (Like C:\\Files).
You can use subst command. Use System.Diagnostic.Process to run the subst.exe with desired parameters.
Here is the command syntax:
Syntax
Associates a path with a drive letter.
SUBST [drive1: [drive2:]path] SUBST drive1: /Ddrive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to a virtual drive.
/D Deletes a substituted (virtual) drive.
Type SUBST with no parameters to display a list of current virtual drives.list of current virtual drives.