|
| |
Home Up
Driveletter toevoegen onder window$
Hallo,
Weet iemand hoe je onder window$ een driveletter toe kunt voegen (net als bijvoorbeeld met een zip drive, geen zip dan
ook geen letter).
Wat ik wil is een drive letter aanmaken onder windows, die in feite via een prog wijst naar een dir op de lokale schijf.
Dat zou kunnen met subst, maar dat wil ik niet gebruiken. Ook het aanmaken van een netwerkkoppeling lukt, maar ook dat
is niet wat ik wil, het moet er gewoon uitzien als een lokaal volume.
Alle suggesties zijn welkom.
Benno
--
Benno, wellicht heb je hier wat aan :
h.ketting@kpn.com wrote:
>
> Hi Delphi brothers and sisters,
>
> I am looking for a friend for way to add a drive letter to Window$ the way
> it works with a Zip drive i.e. (no drive no drive letter).
> This drive letter should point to a directory on a local disc, so not an
> actual device or so. I am not looking the way 'subst' works. Creating a
> network link works, but the image shown should be the 'normal' local drive
> image.
>
Hans,
I don't think anyone answered this one. You have to do this differently in Win9x to NT/2k. In Win95/98, you have to
call int 21 with AX=71AA. For a description of the parameters,
see http://lrs.fmi.uni-passau.de/support/doc/interrupt-57/RB-3146.HTM
For NT or 2000, you can use DefineDosDevice and QueryDosDevice. It is sort of described in the win32 help.
SUBST F: D:\winnt\system32 would be equivalent to
DefineDosDevice(0, 'F', 'D:\winnt\system32')
If you can't work out the details, let me know
Regards,
Stephen Gun
Better late than never
--
Nog een extra stukje :
"I think the DefineDosDevice method may work on Win98 as well, so it may be worth experimenting with. Note, however,
that the subst command in win98 uses the int 21 method. I haven't tried win95. Also, my example was wrong. The drive
letter should have a colon:
DefineDosDevice(0, 'F:', 'D:\winnt\system32')
Stephen."
|