Вниз
Скачать: 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.014 c
6-71286
atmospheric
2002-06-12 14:59
2002.08.22
HTTP запрос


1-71160
DeniM
2002-08-13 14:24
2002.08.22
программирование штрих-кода в печатной форме... (+)


3-70994
S@shka
2002-07-31 12:53
2002.08.22
Чем отличается Commit от CommitRetaining


6-71278
Новеньки в Делфи
2002-06-11 02:02
2002.08.22
свой сервер, помогите теорией


4-71439
serd_hhc
2002-06-15 08:45
2002.08.22
Wininet и закачка файлов.




   Наверх