以下是脚本。执行Wshshell.run "EmEditor.exe "&textPath&" /ncp /i"时,
会打开指定名称的文件的同时还会打开一个未命名的文件,很困扰
请问各位高手,该如何完善脚本,让其只打开指定名称的文件,不打开那个未命名文件呢
Function CopySave(testcase)//MoveTo 53, 119
//LeftDown 1
//Delay 200
//MoveTo 154, 119
//Delay 200
//LeftUp 1
KeyDown 17, 1
KeyPress 67, 1
KeyUp 17, 1
textpath = "e:/result1/select_mode/" & cstr(testcase)&"_" &cstr(num)&".txt"
Set Wshshell = CreateObject("Wscript.Shell") 
Wshshell.run "EmEditor.exe "&textPath&" /ncp /i"
Delay 200
Wshshell.run "EmEditor.exe /sca"KeyPress 13, 1'按"Enter"键
KeyDown 17, 1
KeyPress 83, 1
KeyUp 17, 1
//KeyDown 18, 1
//KeyPress 115, 1
//KeyUp 18, 1
Call ClipImage1(imagePath1)
Delay 1000
KeyDown 18, 1
KeyDown 16, 1
KeyPress 88, 1
KeyUp 16,1
KeyUp 18,1
End Function