vb 重命名文件夹
为什么提示路径访问错误(d:/temp有存在)y="d:/temp"z="d:/56"NameyAsz而Name"d:/temp"As"d:/56"却可以...
为什么提示路径访问错误(d:/temp 有存在)
y = "d:/temp"
z = "d:/56"
Name y As z
而Name "d:/temp" As "d:/56" 却可以 展开
y = "d:/temp"
z = "d:/56"
Name y As z
而Name "d:/temp" As "d:/56" 却可以 展开
展开全部
下面就可以了
Private Sub Command1_Click()
y= "D:\temp"
z = "D:\56"
Name y As z
End Sub
Private Sub Command1_Click()
y= "D:\temp"
z = "D:\56"
Name y As z
End Sub
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Dim folderspec As String
Dim fs As Object
Set fs = CreateObject("Scripting.FileSystemObject")
folderspec = "d:/temp"
If fs.FolderExists(folderspec) Then
Set f = fs.GetFolder(folderspec)
f.Delete
End If
Dim fs As Object
Set fs = CreateObject("Scripting.FileSystemObject")
folderspec = "d:/temp"
If fs.FolderExists(folderspec) Then
Set f = fs.GetFolder(folderspec)
f.Delete
End If
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询