VBScript教程之一(Hello VBScriopt)

' ***********************************************************
'
VBScript变量命名编码规范
'
Subtype         Prefix     Example 
'
Boolean         bln         blnFound 
'
Byte         byt         bytRasterData 
'
Date (Time)     dtm         dtmStart 
'
Double         dbl         dblTolerance 
'
Error err         err        OrderNum 
'
Integer         int         intQuantity 
'
Long         lng         lngDistance 
'
Object         obj         objCurrent 
'
Single         sng         sngAverage 
'
String         str         strFirstName 
'
*************************************************************
'
1.第一个脚本
'
第一个VBSciprt程序,在屏幕上打印hello VBScript
'
使用文本编辑器,输出下面的内容,保存文件名称为hello.vbs
'
运行脚本cscript.exe hello.vbs
Wscript.echo  " hello VBScript "

' 2.数据类型
'
使用布尔类型
dim  blnBool 
blnBool 
=   True
' 根据blnBool的值,输出不同的结果
If  blnBool  =   True   then
  Wscript.echo 
" True "
else
  Wscript.echo 
" False "
End   If  


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值