-
Topic
-
Hi
I want to delete all files in one folder without deleting the files in the subfolder
1. I tried
Utilities.FileSystem.DeleteFileOnDisk ("C:formativ*.*")
but this will delete all subfolders too
an interesting call: Utilities.FileSystem.DeleteFileOnDisk (“E:*.*”)
2.Set fs = CreateObject("Scripting.FileSystemObject")
fs.DeleteFile "C:formativ*.*", Truebut this only runs in the admin-area (creator) but not in the runtime environment; there I have to use “C:formativeLETTER*.*”
maybe there is a switch or an other call
thanks
rainer
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.