将.xml之类的文件复制到system32文件夹中 [英] copy a file like .xml to the system32 folder

查看:102
本文介绍了将.xml之类的文件复制到system32文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何使用c ++或vc ++将.xml或.txt文件复制到"C:\ windows \ system32".

Hi,

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

Thank u in advance.

推荐答案

CopyFile是您的朋友http://msdn.microsoft.com/en-us/library/windows/desktop/aa363851%28v=vs.85%29.aspx [ ^ ]

您确定要将xml或txt类型的文件复制到System32中吗?您的目标是什么?
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?


您可以使用Copyfile函数或movefile.或者可以通过使用expandenvironmentstring函数在syste32中直接创建文件,或者可以使用GetSystemDirectory函数获取路径.系统32.并直接在此处创建文件
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


这篇关于将.xml之类的文件复制到system32文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆