| |
|
|
 | If I this Text walk let: CompileMarkSeparation ...I get with one Diskettenlaufwerk (A: or B: (presupposed, its no floppy disk present) The beiliegende Message. After Click on moreover becomes then "Leer" displayed. the happens only whom Diskettenlaufwerken. - All other LW show same "Leer" on. How can I these Message suppress or bypass ? |
|
|
| |
|
|
|
 Jörg Sellmeyer | You can first testing, whether at all what in the drive is. what gives because ChDir "A:\" for a %ioresult-worth back? |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 09/05/08 ▲ |
|
|
|
|
 Dieter Zornow | @Horst Versuchs time so CompileMarkSeparationtestet ob des Laufwerk ansprechbar ist
Def GetVolumeInformation(8) !"KERNEL32","GetVolumeInformationA"
Proc CheckDrive
Parameters lw$
Declare result&,lw#
If len(lw$) = 1
lw$=lw$ + ":"
ELSEIF len(lw$) = 2
lw$=lw$ + ""
ELSEIF len(lw$) > 3
lw$ = left$(lw$,3)
ENDIF
Return GetVolumeInformation(addr(lw$),0,0,0,0,0,0,0)
EndProc
if checkdrive("A:") = 1
Print STR$(DiskSize("A:\"))
else
Print "Leer"
endif
|
|
|
| Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2 | 09/05/08 ▲ |
|
|
|
|
 | @Dieter the was is !  thanks |
|
|
| |
|
|