切换dos并dir的vbs

来源:互联网 分类:VB
实现代码如下:

<script language=vbscript>
Dim oShell
Set oShell = WScript.CreateObject ("WSCript.shell")
oShell.run "cmd /K CD c:\ & dir"
Set oShell = Nothing
</script>