以编程方式启动Windows文件复制 [英] initiating windows file copy programmatically

查看:121
本文介绍了以编程方式启动Windows文件复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将文件复制到预定义的文件夹。如何编写代码使其在浏览到文件夹后的行为类似于执行ctrl + v。只需单击一个按钮窗口即可从那里获取。(在c#中)



注意:我需要让Windows知道某个文件必须复制到某个位置。我想是挂钩到其中一个窗口进程。

解决方案

请参阅 这个 [ ^ ]页面。



/ ravi


参见 File.Copy [ ^ ]。


参见 http://msdn.microsoft.com/en-us/library/windows/desktop/bb775771(v = vs.85)。 aspx [ ^ ]。

I need to copy files to a predefined folder. How to write the code so that it acts similar to doing ctrl+v after browsing to the folder. Just click a button windows takes it from there.(in c#)

Note: I need to let windows know that a certain file has to be copied to a certain location. Hooking into one of the windows processes i guess.

解决方案

See the answer on this[^] page.

/ravi


See File.Copy[^].


See http://msdn.microsoft.com/en-us/library/windows/desktop/bb775771(v=vs.85).aspx[^].


这篇关于以编程方式启动Windows文件复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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