Kill语句在Sharepoint中不起作用

时间:2017-07-26 13:25:12

标签: vba sharepoint kill

用户保存的计算在sharepoint上存储为“ToCheck ...”。检查完毕后,文件将重命名为“已检查...”。我试图删除现在多余的“ToCheck ...”文件。 首先这段代码:     Dim spMap As Object,spPath As String

Set spMap = CreateObject("WScript.Network")
spMap.MapNetworkDrive "X:", spPath
DoEvents

Kill (Pad & Naam)

以及稍后来自互联网的其他代码(在工具/参考MS脚本编写之后)

Dim fs As New Scripting.FileSystemObject
With fs
    If .FileExists(yourfilepath) Then
        .DeleteFile yourfilepath
    End If
End With
.
.

0 个答案:

没有答案