注册 登录
编程论坛 VB6论坛

VBS要怎么写,哪位教下

人生呀 发布于 2021-12-06 18:47, 983 次点击
就是写一个读本地分辨率,然后写到指定文件
比如读取之后写到c:\1.txt或者写到\\192.168.1.1\1$\下
文件名以计算机名取
1 回复
#2
apull2021-12-06 20:01
程序代码:

Dim width,height
width=CreateObject("HtmlFile").ParentWindow.Screen.width
height=CreateObject("HtmlFile").ParentWindow.Screen.height
WScript.Echo width & "x" & height


保存为t.vbs,使用下面命令存入文本
cscript  t.vbs > t.txt
1