文件比较

上一篇 / 下一篇  2008-11-26 17:51:54 / 个人分类:QTP

Dim WshShell, oExec

Set WshShell = CreateObject("Wscrīpt.Shell")

Set ōExec = WshShell.Exec("fc /b c:\test.jpg c:\test.jpg")

output = oExec.StdOut.ReadAll()

If Instr(1,output, "找不到相异处", 1) Then '这里的
MsgBox "Success"
Else
MsgBox "Failure"
End If


TAG: QTP

 

评分:0

我来说两句

日历

« 2024-05-03  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 47924
  • 日志数: 80
  • 建立时间: 2008-10-27
  • 更新时间: 2009-07-17

RSS订阅

Open Toolbar