Hi Ferry,

tricky, but not impossible!

You need to run this piece of code once:
D $SYSTEM.Activate.LoadTypeLibrary("c:\windows\system32\wshom.ocx","Activate")

And then you can get the drive letters like this:
S FOBJ=##class(Activate.IWshRuntimeLibrary.FileSystemObject).%New()
F I=65:1:90 I FOBJ.DriveExists($C(I)) W $C(I)_":",!

Please note, you are using a COM component of the
Windows Scripting Host!

Regards
Alex

"Ferry" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED]
> Thanks Alex,
> I get now only the local server drivelist but is it also possible to get the
> network drivelist?
>
> "Alexander Riemer" <[EMAIL PROTECTED]> schreef in bericht
> news:[EMAIL PROTECTED]
>> Ferry,
>>
>> just try %File:DriveList()
>>
>> Alex
>>
>> "Ferry" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]
>> > Hello I use %File:FileSet to vieuw all the files on the server,
>> > But is it also possible to vieuw all the available drives (letters) on
> the
>> > server ?
>> >
>> >
>> >
>>
>>
>
> 



Reply via email to