将隐藏文件复制到PC [英] copy hidden file to PC

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

问题描述

你好伙计们你好吗

如何将隐藏文件复制到电脑上?

hello guys how are you
How can i copy a hidden files to pc?

推荐答案

给出你的样本在评论中发表我将假设您使用的是VB.Net,而不是C ++或VB。



首先FileCopy应该可以工作 - 你没有'没有给我们一个暗示为什么它没有。



再说一遍,我假设您也希望隐藏复制文件,所以



使用
Given the sample you''ve posted in the comments I''m going to assume that you''re using VB.Net and not C++ or VB.

Firstly FileCopy should work - you haven''t given us a hint of why it doesn''t.

Again I''m going to assume that you wanted the copy file to be hidden as well, so

Use
System.IO.File.Copy(source, dest, True)





这将复制该文件,如果它已经存在则覆盖它并复制文件属性,因此新文件也被隐藏。



This will copy the file, overwrite it if it already exists and also copies the file properties, so the new file is also hidden.


这篇关于将隐藏文件复制到PC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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