如何在启动时运行非常简单的vbs代码

时间:2018-01-18 00:59:45

标签: batch-file vbscript

这是代码

Dim voice 
Set voice = Wscript.CreateObject("SAPI.spVoice") 
voice.speak "The FBI is watching you!" 
Wscript.Quit 

这是我堂兄的恶作剧。

1 个答案:

答案 0 :(得分:2)

在Windows中:

转到运行命令,在那里输入命令 customEvents | extend Properties = todynamic(tostring(customDimensions.Properties)) | extend duration = todouble(todecimal(Properties.duration)) | project timestamp, name, duration ,按回车它会显示你的启动文件夹,对我来说我的启动文件夹是:

  

C:\ Users \ Administrator \ AppData \ Roaming \ Microsoft \ Windows \ Start Menu \ Programs \ Startup