Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2007.09.23;
Скачать: CL | DM;

Вниз

Как узнать свободное место на удалённом компьютере?   Найти похожие ветки 

 
БарЛог ©   (2007-08-31 14:02) [0]

Всем привет.
как узнать? Пример далённого компьютера: \\remotecomp\c$

Делфи.

Заранее спасибо.


 
Eraser ©   (2007-08-31 14:09) [1]


> БарЛог ©   (31.08.07 14:02) 

если путь в таком виде

> \\remotecomp\c$

то сложно сказать, но если известно название логического диска или номер раздела на удаленной машине, то через wmi можно, см. Win32_LogicalDisk, Win32_DiskPartition.


 
evvcom ©   (2007-08-31 14:13) [2]

Трояна подсунуть - он тебе всё, что хошь расскажет и покажет :)


 
БарЛог ©   (2007-08-31 14:16) [3]

Eraser ©   (31.08.07 14:09) [1]
Тотал коммандер же как-то делает.

> Win32_LogicalDisk, Win32_DiskPartition.
Щас покопаю...


 
clickmaker ©   (2007-08-31 14:18) [4]

GetDiskFreeSpace


 
БарЛог ©   (2007-08-31 15:07) [5]

> GetDiskFreeSpace

BOOL GetDiskFreeSpace(
 LPCTSTR lpRootPathName,
 LPDWORD lpSectorsPerCluster,
 LPDWORD lpBytesPerSector,
 LPDWORD lpNumberOfFreeClusters,
 LPDWORD lpTotalNumberOfClusters
);

Parameters
lpRootPathName
[in] A null-terminated string that specifies the root directory of the disk. If this

parameter is NULL, the function uses the root of the current disk. If this parameter is a

UNC name, it must include a trailing backslash (for example, \MyServerMyShare).

Furthermore, a drive specification must have a trailing backslash (for example, C:).
lpSectorsPerCluster
[out] Pointer to a variable that receives the number of sectors per cluster.
lpBytesPerSector
[out] Pointer to a variable that receives the number of bytes per sector.
lpNumberOfFreeClusters
[out] Pointer to a variable for the total number of free clusters on the disk that are

available to the user who is associated with the calling thread.
lpTotalNumberOfClusters
[out] Pointer to a variable for the total number of clusters on the disk that are available

to the user who is associated with the calling thread.

Return Values
If the function succeeds, the return value is nonzero.

Спасибо.



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

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

Наверх




Память: 0.48 MB
Время: 0.028 c
2-1188390706
Cobalt
2007-08-29 16:31
2007.09.23
var-Параметры_процедур - указатели. То ли лыжи не едут, ....


15-1188142290
Ermitazh
2007-08-26 19:31
2007.09.23
Помогите новичку


9-1161009129
Tesla
2006-10-16 18:32
2007.09.23
Вывод текста юзверю в 3D играх


2-1188203930
Ezorcist
2007-08-27 12:38
2007.09.23
Проблема с установкой времени


3-1179734128
dmitrigan
2007-05-21 11:55
2007.09.23
не удаляются записи из таблицы