Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

virtual drives

dizzydizzy Member Posts: 2
hi

can anyone tell me hot to create virtual drives (how to make them from my program)?

Any reference in any programming language is usefull.

10nx

Comments

  • injektiloinjektilo Member Posts: 113
    its a DOS command

    SUBST [drive1: [drive2:]path]
    SUBST drive1: /D

    drive1: vurtual drive letter which is linked to the path
    [drive2:]path: an existing drive letter and path name
    /D removes the virtual drive

    to call it in delphi use:^
    [code]
    ShellExecute(Application.Handle, PChar('open'), PChar('SUBST'), PChar('H: C:WINNT'), nil, SW_HIDE); //set
    ShellExecute(Application.Handle, PChar('open'), PChar('SUBST'), PChar('H: /D'), nil, SW_HIDE); //remove
    [/code]




Sign In or Register to comment.