我正在尝试在下面的目录中创建一个文件夹,并收到错误的错误号码或名称?我刚开始使用VBScript并需要帮助。
Option Explicit
Dim Shell
Dim ObjFSO
Set Shell=CreateObject("WScript.Shell")
Set ObjFSO =CreateObject("Scripting.FileSystemObject")
'creates a folder in the path'
ObjFSO.CreateFolder """C:\Program Files\MECracker\"""
答案 0 :(得分:2)
丢失六个双引号中的四个。
Option Explicit
Dim Shell
Dim ObjFSO
Set Shell=CreateObject("WScript.Shell")
Set ObjFSO =CreateObject("Scripting.FileSystemObject")
'creates a folder in the path'
ObjFSO.CreateFolder "C:\Program Files\MECracker\"