UiBot设置文件保存路径相关问题
Dim workspace
workspace = Replace(@res"","res\\","",False)
File.WriteFile(workspace&"jpg\\"&"test.txt","adsda","gbk")
TracePrint "工作目录:"&workspace
TracePrint "工作目录:"&@res""
uibot使用@表示当前工作项目路径。测试结果如下:
Dim workspace
workspace = Replace(@res"","res\\","",False)
File.WriteFile(workspace&"jpg\\"&"test.txt","adsda","gbk")
TracePrint "工作目录:"&workspace
TracePrint "工作目录:"&@res""
uibot使用@表示当前工作项目路径。测试结果如下: