Code: Select all
FILE( CHR( i ) + ":\NUL" )
Code: Select all
ISDISK( CHR( i ) )
EMG
Code: Select all
FILE( CHR( i ) + ":\NUL" )
Code: Select all
ISDISK( CHR( i ) )
Code: Select all
#include "FiveWin.ch"
function Main()
XBrowser( ADrives() )
return nil
What do you get? I get all the drives from C to Z after latest Windows update.Antonio Linares wrote:Enrico,
I just tested:And it is working fine with Windows 10 Pro, version 1703, OSBuild 15063.138Code: Select all
#include "FiveWin.ch" function Main() XBrowser( ADrives() ) return nil
Latest official: Windows 10 Pro 1607 14393.1066Antonio Linares wrote:What Windows 10 version are you using ?
Code: Select all
function ADrives( nType ) // Thanks to EMG
local aDisk := {}
local i
DEFAULT nType := 0
if nType = 0 .OR. nType = 1
for i = ASC( "A" ) TO ASC( "B" )
if ISDISKETTE( CHR( i ) + ":" )
AADD( aDisk, CHR( i ) + ":" )
endif
next
endif
if nType = 0 .OR. nType = 2
for i = ASC( "C" ) TO ASC( "Z" )
if ISCDROM( CHR( i ) + ":" ) .OR. ISDISK( CHR( i ) )
AADD( aDisk, CHR( i ) + ":" )
endif
next
endif
return aDisk