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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FileSystemObject

Status
Not open for further replies.

fheyn

Programmer
Mar 22, 2001
198
DE
Hi,
the FSO-methods MoveFolder and DeleteFolder will always
give me runtime-error 70 ( access denied) althoung I have
set parameter foce=true.
How can I solve this problem ?
thanks in advance
 
Hey mate.

This would be caused if you currently have a handle to a file in that folder. Force will only ignore the attributes such as readonly etc.

Close any open files before moving. Also your application exe won't happen to be in that folder will it??? That WILL be locked!
 
the exe is not in that folder.
in fact, the folder is empty 'cause all the files have been
moved to a backup-folder
 
The FSO might still keep a reference to that folder ...

I was standing in the park, wondering why frisbees got bigger as they came closer... then it hit me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top