QTP中用命令刪除某碟符下的的檔案

2021-05-21 19:27:36 字數 540 閱讀 9570

set oshell = createobject ("wscript.shell")

oshell.run "cmd /k taskkill /f /im excel.exe"

window("object class:=consolewindowclass").type "del /f /q c:/*.xls"

window("object class:=consolewindowclass").type micreturn

window("object class:=consolewindowclass").type "del /f /q c:/*.htm"

window("object class:=consolewindowclass").type micreturn

window("object class:=consolewindowclass").type "exit"

window("object class:=consolewindowclass").type micreturn

set oshell = nothing

對於Git中用命令刪除分支時的注意事項

1.在用git branch d test 刪除乙個分支時,會出現以下幾種情況.1 子分支編輯後沒提交出現錯誤.2 子分支使用 git add 以後沒用使用 git commit m 也會出現錯誤 3 子分支git commit m 以後.刪除子分支也會出現錯誤.原因是用 master 刪除子分支時...

工作中用到的常用命令

linux 1.刪除 rm rf 加資料夾名 rm rf core ub.3 以這個開頭的所有檔案 2.ll lrt 按時間順序列表展示檔案 ll列表,ls 3.top linux下的常用效能分析工具,能夠實時顯示出系統中各個程序資源占用情況 4.uptime 當前時間 系統命令 檢視時間 date...

mysql中用命令列複製表結構的方法

mysql中用命令列複製表結構的方法 1.只複製表結構到新錶 create table 新錶 select from 舊表 where 1 2 或create table 新錶 like 舊表 2.複製表結構及資料到新錶 create table 新錶 select from 舊表 3.複製舊表的資...