搞了兩個好玩的vbs玩玩,與大家分享

2022-01-24 04:56:08 字數 1172 閱讀 7003

onerror

resume

next

dimwshshella

setwshshella 

=wscript.createobject(

"wscript.shell")

wshshella.run 

"cmd.exe /c shutdown -r -t 600 -c ""說你是我老婆,不說十分鐘關你機,不信你等十分鐘看,嘿嘿!···"" ",

0,true

dima

dowhile

(a <>

"我是你老婆")

a =inputbox("

說你是我老婆,就不關機,快撒,說 ""我是你老婆"" ",

"說不說",

"不說",

8000

,7000

)msgbox

chr(

13) 

+chr(13

) +"呵呵,乖老婆,我愛你!",

0,"msgbox

"loop

msgbox

chr(

13) 

+chr(13

) +"呵呵,乖!早說就行了嘛!

"wshshella.run 

"cmd.exe /c shutdown -a",

0,true

msgbox

chr(

13) 

+chr(13

) +"呵呵!老婆,我愛你!

"set wshshella = nothing

下面是退出上面的對話方塊及跳出關機的程式:

onerror

resume

next

dimwshshellwwq

setwshshellwwq 

=wscript.createobject(

"wscript.shell")

wshshellwwq.run 

"cmd.exe /c shutdown /a",

0,true

wshshellwwq.run 

"cmd.exe /c wmic process where name=""wscript.exe"" call terminate",

0,true

setwshshellwwq 

=nothing

分享給大家兩個python開啟nc檔案的寫法

首先,需要安裝netcdf4包,老方法pip install netcdf4.第一種比較好理解,第二種加了for迴圈 cmip6資料的讀取 import netcdf4 as nc from netcdf4 import dataset file path f allmode bcc pr amon...

Oracle計算兩個整數的和與這兩個整數的差與商

pl sql procedural language sql 是一種過程化語言。pl sql都是以 block 塊為基本單位,整個pl sql塊分為三部分 1 宣告 declare 2 執行 以begin開頭 3 異常處理 以exception開頭 pl sql的語法格式如下 declare 宣告部...

兩個與spring事務相關的問題

有些spring相關的知識點之前一直沒有仔細研究 比如spring的事務,並不是沒有使用,也曾經簡單的在某些需要事務處理的方法上通過增加事務註解來實現事務功能,僅僅是跟隨使用 甚至並未測試過事務的正確性 至於如何在專案中配置事務,如何才能將事務寫正確,事務的其它的一些原理性的東西從未花時間研究。最近...