How can I check with vbscript whether a folder is in use ?

OS : Windows xp
itbabeAsked:
Who is Participating?
 
sirbountyConnect With a Mentor Commented:
I think you'll need to be more reactive in that regard...
Something like

on error resume next
'code to rename folder
If err.Number <> 0 Then 'error occurred
  wscript.echo "Can't rename the folder."
End If
0
 
sirbountyCommented:
I don't believe you'll be able to do that...
To my knowledge that information is not stored anywhere.

But perhaps I've misunderstood your question - what do you mean by folder in use?
0
 
itbabeAuthor Commented:
When you want to rename  a folder and 1 of the files of the folder is in use,  it cannot be renamed.  Before attempting to rename the folder,  the script should check whether any of its files is in use.
0
All Courses

From novice to tech pro — start learning today.