例如,要確定一個檔案的副檔名,可以使用LastIndexOf()獲取最後一個字元“.”的位置,繼續使用Substring()獲取副檔名子串。 PS> $path = "C:\prefs.js" PS> ...
確定! 回上一頁