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

Вниз

Как программно скопировать файл по локалке ???   Найти похожие ветки 

 
TIER   (2003-03-22 08:28) [0]

Подскажите плиззз... Как файл в дельфи по локалке закинуть на другой комп, или как с другого компа файл качнуть можно?


 
cLe0   (2003-03-22 14:52) [1]

The CopyFile function copies an existing file to a new file.

BOOL CopyFile(

LPCTSTR lpExistingFileName, // pointer to name of an existing file
LPCTSTR lpNewFileName, // pointer to filename to copy to
BOOL bFailIfExists // flag for operation if file exists
);


Parameters

lpExistingFileName

Points to a null-terminated string that specifies the name of an existing file.

lpNewFileName

Points to a null-terminated string that specifies the name of the new file.

bFailIfExists

Specifies how this operation is to proceed if a file of the same name as that specified by lpNewFileName already exists. If this parameter is TRUE and the new file already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds.



Return Values

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

Security attributes for the existing file are not copied to the new file.
File attributes (FILE_ATTRIBUTE_*) for the existing file are copied to the new file. For example, if an existing file has the FILE_ATTRIBUTE_READONLY file attribute, a copy created through a call to CopyFile will also have the FILE_ATTRIBUTE_READONLY file attribute. For further information on file attributes, see CreateFile.

See Also

CreateFile, MoveFile

Имя файла: \\Comp\Resource\Filename


 
Olegg   (2003-04-14 20:20) [2]

А почему не пойдет
CopyFile(PChar(DestinationName),PChar(TargetName),True); ?


 
autogen   (2003-04-14 22:10) [3]

To cLe0. А если Resource не Device?



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

Форум: "Сети";
Текущий архив: 2003.06.16;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.007 c
1-50370
Yus
2003-06-04 06:31
2003.06.16
Проблема со шрифтом


1-50366
АлексейК
2003-06-02 13:23
2003.06.16
Создание копии объекта, созданного в приложении, в DLL.


14-50432
Soft
2003-05-28 11:42
2003.06.16
В чем смысл смысла?


1-50323
Dankin
2003-06-03 12:35
2003.06.16
Drag and drop


6-50423
Reals
2003-04-10 15:30
2003.06.16
Нужно подсчитать траффик интернета в выделенке...





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский