使用分裂然後將它們連接在一起,再次
Dim Result as string
Dim splitdir() as string = Split("F:\Users\Killu\AppData\Local\osu!\Songs\82734 Sakakibara Yui - Nyanderful!", "\")
Dim x as integer
For i as integer = 0 to 99
For j as integer = 0 to 9
If splitdir(i).substring(0,1) = j
x = i
i = 99
End if
Next
Next
For i as integer = x to splitdir.length - 1
Result += splitdir(i)
Next
或者,如果數字總是在目錄
Dim Result as string
Dim splitdir() as string = Split("F:\Users\Killu\AppData\Local\osu!\Songs\82734 Sakakibara Yui - Nyanderful!", "\")
Dim x as integer
Result = splitdir(splitdir.length - 1)
,我在我的iPad上打字的最後一部分,所以我很抱歉,如果我做了一些錯別字/失誤
嘗試是這樣的[Path.GetFileName方法](https://開頭MSDN。 microsoft.com/en-us/library/system.io.path.getfilename(v=vs.110).aspx)。然後刪除前面的數字,通過替換或以往。 – Chuck