新建fullscreen.vbs
- Set objShell = CreateObject("Wscript.Shell")
- objShell.SendKeys "{F11}"
-
Set xxx 用于指示一个未初始化的对象值,或者把对象变量从对象分离用于释放系统资源。
新建test.bat
- @echo off
- start https://www.cdsy.xyz
- choice /t 1 /d y /n > nul
- start %cd%\fullscreen.vbs
-
若引用绝对路径的vbs文件,start C:\Windows\System32\fullscreen.vbs即可