-1
我在這裏有一個想法,但我不知道如何實現它。指定變量VB.net的當前路徑
Dim currentPath As String
If System.IO.Path.Combine(Directory.GetCurrentDirectory(), "AccountServer.exe") OrElse System.IO.Path.Combine(Directory.GetCurrentDirectory(), "AccountServer.exe") Then
End If
我想要做什麼是我想要的程序去查找AccountServer.exe在當前文件,如果程序沒有找到它,然後它會看看將AccountServer/AccountServer.exe。
如果它找到該.exe的當前路徑,那麼它會將它分配給currentPath變量。
我該怎麼做,或者甚至有可能?
'Path.Combine()'返回相結合,而不是結果....無論你是期待。打開選項嚴格 – Plutonix