各位好,請教一個檔名更改的問題
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是個變數,必須依照手動輸入而變更
請問要怎麼修正,謝謝。