如何复制和重命名.bak文件 [英] how to copy and rename a .bak file

查看:433
本文介绍了如何复制和重命名.bak文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

Hi all

Dim source As String = "C:\Application\project_blank.bak"
 Dim dest As String = "C:\Application\" & txtCompanyCode.Text & "\"



这些是我的字符串。

i需要复制文件,但在此之前我必须将其重命名为文本框值的同名。

eg如果txtCompanyname.text包含值为AAA0001,则.bak文件应重命名为该文件并复制到该文件夹​​。



请告诉我如何操作


these are my to string.
i need to copy the file, but before that i have to rename it as the same name of the value of the textbox.
e.g. if txtCompanyname.text contains value as AAA0001, then the .bak file should rename as that and copy to the folder.

Please tell me how to do that

推荐答案

我已在您的其他问题中向您发送了 File.Copy 页面的链接。请不要转发。
I already posted you a link to the File.Copy page in your other question. Please don''t repost.


这篇关于如何复制和重命名.bak文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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