Вниз
Скачать: 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-71215
Dinara
2002-08-09 02:11
2002.08.22
Посоветуйте, пожалуйста, компонент для поиска файлов в папках.


3-71015
Brute
2002-08-01 08:10
2002.08.22
Что содержит VAL-файл базы paradox?


14-71349
Igor_thief
2002-07-27 19:12
2002.08.22
Отчеты


6-71285
GM_
2002-06-10 09:41
2002.08.22
IP адрес отправки UDP пакета


1-71192
TAlex
2002-08-09 22:38
2002.08.22
TImageList




   Наверх