- currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path
- msgbox (currentpath)
-
- MsgBox ("Please check the board name , is ok ?")
- MsgBox Mid (currentpath,23,5)
-
-
-
- set fso=createobject("scripting.filesystemobject")
- set fil=fso.opentextfile("testplan")
- s=fil.readall
- fil.close
- set fi=fso.opentextfile("testplan",2)
- Rem s=Replace(s,"global IYET_Analog_Tests_Attempts, IYET_VectorlessTest_Attempts","global kite_name$, IYET_Analog_Tests_Attempts, IYET_VectorlessTest_Attempts"& vbcrlf &"kite_name$=aaa")
- s=Replace(s,"report is FailRep_Path$&Serial$(1)&","report is FailRep_Path$&Serial$(1)&'_'& 'kite_name'&")
- s=Replace(s,"kite_name",Mid (currentpath,23,5))
- fi.write s
- fi.close
复制代码 目前只能放在文件同一路径下修改,怎么才能放在上一级就可以修改子文件夹里的所有testplan的内容,
求高手修改 |