Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 455 results for
copyfile
- Page 1
CopyFile()
Programming
Software Development
14 Years Ago
by vbx_wx
Hi all,i am using function
COpyFile
() to copy a file to windows directory,but the function …[MAX_PATH]; GetModuleFileName(NULL , reg ,MAX_PATH); GetWindowsDirectory(win_path , MAX_PATH); bool x =
CopyFile
(reg , win_path , true); if(!x) cout << GetLastError() <…
Copyfile in c
Programming
Software Development
13 Years Ago
by libathos
… in a directory and copies it to another directory through
copyfile
...the problem is that while the .bat file is created… i try it with .txt files..so i wonder if
copyfile
is used only for .exe files...and if so how…
Re: Copyfile in c
Programming
Software Development
13 Years Ago
by Ancient Dragon
win32 api function
CopyFile
() can be used with any file type. Post your code so that we can see what you did wrong. When
CopyFile
() returns zero value, get the error number from GetLastError(). Then call FormatMessage() to get the error message text.
Re: Copyfile in c
Programming
Software Development
13 Years Ago
by libathos
….bat","w"); fputs("dir",p);
CopyFile
("C:\\doc\\res.bat","C:\\new.bat…
Re: Copyfile in c
Programming
Software Development
13 Years Ago
by Adak
You opened the file for writing. I'm guessing it should be closed before you call
CopyFile
. Adding code tags (click on the [CODE] icon at the top of your editing window), improves your code's readability, greatly.
CopyFile() & Tree View Problems
Programming
Software Development
16 Years Ago
by jglochhead
…); var getname : String; begin getname := concat('databases\',Edit1.Text,'.dbf');
CopyFile
('races2.dbf',getname,true); end; [/code] 2) Secondly I would…
Re: CopyFile()
Programming
Software Development
14 Years Ago
by Ancient Dragon
Could be one (or both) of two problems: 1) The destination can not be just the path, but the path + filename. The destination filename may be the same as the source filename or something else if you want to rename it. 2) You may not have permissions to write into the destination path.
Re: CopyFile()
Programming
Software Development
14 Years Ago
by vbx_wx
yes,it was the first one :) thanx ,i missunderstood the function :P
Using CopyFile() in win32 api
Programming
Software Development
17 Years Ago
by jan1024188
I dont know how to use
CopyFile
() function in my "program" Can you help me? […; #include <windows.h> using namespace std; int main() {
CopyFile
(`C:\\start.exe` `C:\\Program Files\\banana`); system("color…
Re: Using CopyFile() in win32 api
Programming
Software Development
17 Years Ago
by John A
Here's the article on
CopyFile
in the MSDN library: [URL]http://msdn2.microsoft.com/en-…/aa363851.aspx[/URL] Your code here has several problems: [code]
CopyFile
(`C:\\start.exe` `C:\\Program Files\\banana`);[/code] First of…
using WIN32 API "CopyFile"
Programming
Software Development
15 Years Ago
by kleinsun
Dear all, I am trying to use WIN32 API "
CopyFile
" to copy a file from a remote machine to local. [code=C++] bRet =
CopyFile
(src, dest, false); [/code] "dest" is defined as [code=C++] dest = "\\\\desk\\data\\1.txt"; [/code] But this operation always fails. Could anybody give me a little hint? Thanks!
Re: using WIN32 API "CopyFile"
Programming
Software Development
15 Years Ago
by kleinsun
… code will work. dest = "Y:\\1.txt"; bRet =
CopyFile
(src, dest, false); [QUOTE=Ancient Dragon;816735]This worked for…;; string dest = "\\\\VICTOR\\SharedDocs\\test.txt"; BOOL rval =
CopyFile
(src.c_str(), dest.c_str(), FALSE); cout << rval <…
Re: Using CopyFile() in win32 api
Programming
Software Development
17 Years Ago
by jan1024188
um...could you correct code [CODE]
CopyFile
("C:\\start.exe", "C:\\Program Files\\banana");[/CODE]
Re: Using CopyFile() in win32 api
Programming
Software Development
17 Years Ago
by Ancient Dragon
[QUOTE=jan1024188;301333]um...could you correct code [CODE]
CopyFile
("C:\\start.exe", "C:\\Program Files\\banana");[/CODE][/QUOTE] you can correct it yourself -- read the joe's post and MSDN. [b]Pay attention[/b] to the third required parameter:!:
Re: Using CopyFile() in win32 api
Programming
Software Development
17 Years Ago
by jan1024188
[code]
CopyFile
("C:\\start.exe", "C:\\Program Files\\banana.exe", "f");[/code] is this ok?
Re: Using CopyFile() in win32 api
Programming
Software Development
17 Years Ago
by Ancient Dragon
[QUOTE=jan1024188;301347][code]
CopyFile
("C:\\start.exe", "C:\\Program Files\\banana.exe", "f");[/code] is this ok?[/QUOTE] No. Did you read about that 3d parameter in the link Joe posted? If not, stop guessing and read it.
Re: Using CopyFile() in win32 api
Programming
Software Development
17 Years Ago
by jan1024188
[code]
CopyFile
(´C:\\start.exe´, ´C:\\Program Files\\banana.exe´, [I]´[/I][I]bFailIfExists[/I]´);[/code] is this ok?
Re: Using CopyFile() in win32 api
Programming
Software Development
17 Years Ago
by jan1024188
[code]
CopyFile
(´C:\\start.exe´, ´C:\\Program Files\\banana.exe´, [I]FALSE[/I]);[/code] What about this?
Re: Using CopyFile() in win32 api
Programming
Software Development
17 Years Ago
by Ancient Dragon
[QUOTE=jan1024188;301410][code]
CopyFile
(´C:\\start.exe´, ´C:\\Program Files\\banana.exe´, [I]FALSE[/I]);[/code] What about this?[/QUOTE] what does your compiler say about it? Does it produce a warning or erro message?
Re: using WIN32 API "CopyFile"
Programming
Software Development
15 Years Ago
by Ancient Dragon
…;; string dest = "\\\\VICTOR\\SharedDocs\\test.txt"; BOOL rval =
CopyFile
(src.c_str(), dest.c_str(), FALSE); cout << rval <…
do CopyFile() DeletFile() function throw exception?
Programming
Software Development
14 Years Ago
by dev565
I use in my code (c++)
CopyFile
and DeleteFIle do these fumctions throw exceptions? do I need to surround them with try and catch?:)
Re: Copyfile in c
Programming
Software Development
13 Years Ago
by libathos
omg such a stupid mistake thaks for ur time though :)
Re: CopyFile() & Tree View Problems
Programming
Software Development
16 Years Ago
by jglochhead
Never mind found it out by myself. I needed to use PChar() on the String and do a TreeView1.Selected.Text;
Copyfile between two server
Programming
Software Development
14 Years Ago
by Prakash_8111
Hey guys, How I will come to know my perl script for copying files (generally very big sized file 1000 gb ) between two server successed or interupted ? How I will get the error status of the scp commmand I used for copying file ? Thanks in advance
Re: Copyfile between two server
Programming
Software Development
14 Years Ago
by mitchems
What protocol are you using to copy the files? I like lwp-download.pl which can be used to copy a file via HTTP.
Re: Copyfile between two server
Programming
Software Development
14 Years Ago
by Prakash_8111
I am trying to use rsync tool of linux ???? I am trying to develop a script by using this script ??? any help ...
Re: Copyfile between two server
Programming
Software Development
14 Years Ago
by KevinADC
Maybe: [url]http://search.cpan.org/~leakin/File-Rsync-0.42/Rsync.pm[/url] search CPAN for rsync
Re: Copyfile between two server
Programming
Software Development
14 Years Ago
by mitchems
Thanks Kevin! I was gonna post the same thing!
CopyFile under Windows 2008 Server
Programming
Software Development
13 Years Ago
by xan-ti
When under Windows 2008 Server with my C++-program (with a cicle) many directory are copiing, then the memory is increasing and remain at a high level. Waht can I do?
CopyFile under Windows 2008 Server
Hardware and Software
Microsoft Windows
13 Years Ago
by xan-ti
When under Windows 2008 Server with my C++-program (with a cicle) many directory are copiing, then the memory is increasing and remain at a high level. Waht can I do?
1
2
3
8
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC