如果要判断一个路径最后是否有"\",如果没有就加"\",有"\"就不加:
invokeCode:
filePath = "C:"
filePath = IIF(filePath.EndWith("\"),filePath,filePath + "\").tostring
console.writeline(filePath)
如果要判断一个路径最后是否有"\",如果没有就加"\",有"\"就不加:
filePath = "C:"
filePath = IIF(filePath.EndWith("\"),filePath,filePath + "\").tostring
console.writeline(filePath)