Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Начинающим";
Текущий архив: 2007.09.23;
Скачать: [xml.tar.bz2];

Вниз

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

 
БарЛог ©   (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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.056 c
11-1172065293
mixail_shar
2007-02-21 16:41
2007.09.23
Кладову


3-1179737716
Empleado
2007-05-21 12:55
2007.09.23
Постраничная выборка


2-1188290138
Include
2007-08-28 12:35
2007.09.23
Indy компоненты, ключи


15-1187558212
ferr
2007-08-20 01:16
2007.09.23
Цитата: учёные превзошли скорость времени.


15-1187871209
Synset
2007-08-23 16:13
2007.09.23
Драйвера





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский