創建目錄,我想創建FTP目錄,該目錄的名稱必須是我的計算機名,VBScript中,在FTP
這裏是我的代碼,
Dim FoldertoCreate, filesys, newfolder, Ob
Set Ob = Wscript.CreateObject("Wscript.Network")
FoldertoCreate = "ftp://user:[email protected]/url-path/" & ob.ComputerName
Set filesys = CreateObject("Scripting.FileSystemObject")
If Not filesys.FolderExists(FoldertoCreate) Then
Set newfolder = filesys.CreateFolder(FoldertoCreate)
End If
此代碼沒有按然而,「T工作時,我與任何本地目錄一樣d更換ftp://user:[email protected]/url-path:/,它的工作原理:S
如何讓它爲我的FTP工作太
Scripting.FileSystemObject用於文件系統,它不支持FTP。 – 2012-02-17 17:31:34
那我該用什麼?你能告訴我嗎? – 2012-02-17 18:55:38