"IdleBrain" <indianmostwanted@newsgroup> wrote in message
news:f32c3b35-234d-42d0-9545-a40512b2a457@newsgroup
> Yes, the problem occurs when I run: FSO.DeleteFolder
> tempFolderLocation,True
>
> I am not running any particular code from within the
> 'tempFolderLocation' but I am running a batch file (.cmd) within that
> folder using run(command) and waiting until the batch file is
> completed.
>
> Even a sleep of 30s does not help with not getting 'access denied'
> error message. Your answer is a little ambiguous and we need to be very precise here. The
questions is: Does the problem occur when you run this 2-line fragment of
your code?
set fso=createobject("Scripting.FileSystemObject")
FSO.DeleteFolder tempFolderLocation, True
In other words, does it occur when you paste these two lines into a .vbs
file, replace tempFolderLocation with an actual string, then invoke the
script?