Click here to Skip to main content
15,886,753 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How to copy .xml or .txt files to "C:\windows\system32" using c++ or vc++.

Thank u in advance.
Posted

CopyFile is your friend http://msdn.microsoft.com/en-us/library/windows/desktop/aa363851%28v=vs.85%29.aspx[^]

Are you sure you want to copy files of type xml or txt into System32? What is your goal?
 
Share this answer
 
Comments
chandanadhikari 21-Nov-12 3:09am    
my 5! should serve the purpose
Andy411 21-Nov-12 3:18am    
thx :-)
You could use Copyfile function or the movefile.or you could diretcly create your file in the syste32 by using expandenvironmentstring function or you could use function GetSystemDirectory for getting the path of system 32.and create the file there directly
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900