Вниз
Скачать: CL | DM;

CD-ROM Ready   Найти похожие ветки 

← →
easy   (2002-06-08 14:20) [0]

...есть кусочек кода на Басике:

Sub ShowDriveInfo(drvpath)
Dim fs, d, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set d = fs.GetDrive(drvpath)

If d.IsReady Then
s ="Drive is Ready."
Else
s ="Drive is not Ready."
End If

MsgBox s
End Sub

...можно на Delphi перевести?
Спасибо...


← →
aus ©   (2002-06-08 14:45) [1]

Примерно так:
procedure ShowDriveInfo(drvpath: variant);
var fs, d: variant;
s : string;
begin
fs := CreateOleObject("Scripting.FileSystemObject");
d := fs.GetDrive(drvpath);

If d.IsReady Then
s := "Drive is Ready."
Else
s := "Drive is not Ready."
ShowMessage(s);
End;


← →
MBo ©   (2002-06-08 14:55) [2]

if FileExists("f:\nul") then
ShowMessage("f-Drive Ready");


← →
easy   (2002-06-08 16:51) [3]

...спасибо, разобрался уже...
mcisendstring("Status cdaudio ready wait",...,...,application.handle);



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.014 c
3-70982
BAY
2002-07-31 11:22
2002.08.22
Client-Server


3-71039
Alex_VV
2002-07-29 16:39
2002.08.22
Проблема с индексами


14-71332
Hard
2002-07-26 15:08
2002.08.22
Почему драйвер видяхи слетает?


3-71065
Андрусь
2002-08-02 11:48
2002.08.22
проблема с DataSetом


3-71028
lejik
2002-07-25 13:05
2002.08.22
Как отучить от автодобавления записи




   Наверх