powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / C++ [игнор отключен] [закрыт для гостей] / Как скопировать вайл
5 сообщений из 5, страница 1 из 1
Как скопировать вайл
    #33440638
celson
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Уважаемые порграмисты приведите пожалуйста пример как мне скопировать файл
"ТОМ1.txt" из папки "c:\temp" в "c:\temp\1"

С уважением Celson
...
Рейтинг: 0 / 0
Как скопировать вайл
    #33440664
Карабас Барабас
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
copy c:\temp\ТОМ1.txt c:\temp\
Posted via ActualForum NNTP Server 1.3
...
Рейтинг: 0 / 0
Как скопировать вайл
    #33441093
Lacrim
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Можно еще IT-шникам позвонить.
Тады придет специально обученный человек, прошедший
подготовку на спецкурсах Microsoft и выполнит эту
операцию на должном профессиональном уровне.
...
Рейтинг: 0 / 0
Как скопировать вайл
    #33441746
celson
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Получается прога
--------------------------------
#include <???.h>

main ()
{

copy c:\temp\ТОМ1.txt c:\temp\


}
--------------------------------

Скопирует мне файл - том1.txt ???

Приведите пожалуйста пример!
...
Рейтинг: 0 / 0
Как скопировать вайл
    #33441756
Фотография rrrrrrrrrr
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Хм...
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
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 
...
Рейтинг: 0 / 0
5 сообщений из 5, страница 1 из 1
Форумы / C++ [игнор отключен] [закрыт для гостей] / Как скопировать вайл
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]