各位好,请教一个档名更改的问题
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim SN As String
SN = InputBox("Please Scan SN")
手动输入SN
My.Computer.FileSystem.MoveFile("D:\log.txt","D:\a\log.txt")
复制档案log从D槽至D:\
My.Computer.FileSystem.RenameFile("D:\a\log.txt","SN.txt")
重新命名log.txt至SN.txt,但是找到的资讯,若用此法转换出来的档名皆为SN.txt,
但是需求SN是个变量,必须依照手动输入而变更
请问要怎么修正,谢谢。