示例批处理:test.bat 复制代码 代码如下: :On Error Resume Next Sub bat echo off & cls echo Batching_codez_here_following_vbs_rules & pause start wscript -e:vbs "%~f0" Exit Sub End Sub MsgBox "This is vbs" 上面的代码巧妙利用 bat 和 vbs
复制代码 代码如下: @echo off&setlocal enabledelayedexpansion&cls&color 0f&title Welcome to CN-DOS! mode con: cols=30 lines=3 set "a= PC-X69" set b= set "c=12345689abcde" echo\ :c for /l %%a in (6,1,28) do ( set /a d=%random%%%1