Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.08.22;
Скачать: 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 вся ветка

Текущий архив: 2002.08.22;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.014 c
3-70964
sasha
2002-07-31 13:18
2002.08.22
DecisionCube


1-71212
Просто прохожий
2002-08-10 17:25
2002.08.22
Фокус


3-71035
Alex_Vas
2002-08-01 07:17
2002.08.22
ADO с паролем


7-71389
[ KGB ] GENERAL
2002-06-10 11:36
2002.08.22
Скажите пожалуйста...


3-71025
SemFLY
2002-07-31 18:38
2002.08.22
Почему не происходит запись в поле DBGrid ?