Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望能够重命名目录,无论它是否包含某些内容。我没有看到这样的选择。例如,这是我创建目录的方式,但如何重命名它?:
Public Sub CreateDirectory(path As String) If session IsNot Nothing Then session.CreateDirectory(path) End If End Sub
使用Session.MoveFile方法:
Session.MoveFile
session.MoveFile("/path/directory", "/path/new_name")