Вниз
Скачать: 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.45 MB
Время: 0.012 c
1-71073
VID
2002-08-07 21:02
2002.08.22
Задний фон строки, в RichEdit


14-71356
Sam Stone
2002-07-27 21:02
2002.08.22
CreateProcess


3-70951
falcon
2002-07-30 11:20
2002.08.22
ADO + SQL Server 2000, подстановочные поля


1-71209
inc(665)
2002-08-09 12:49
2002.08.22
вопрос по RxRichEdit


1-71105
atmospheric
2002-08-12 23:13
2002.08.22
Чужой Memo (RichEdit)...




   Наверх