Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete a directory 1

Status
Not open for further replies.

adhikarig

Technical User
Joined
Nov 3, 2008
Messages
1
Location
IT
hi all

i am trying to delete a directory, which contains some files, using the command -
file delete -force $dirName

this command works file in all the case except one, where it gives the following error -
error deleting "dirName\fileName.wri" : permission denied

does anyone have any solution?

thanks in advance
 
Hi

Maybe the given file is kept open by another process. In which case your script can do nothing, except killing that process and trying again.


Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top