PC Review


Reply
Thread Tools Rate Thread

Cannot delete files through VBA

 
 
dgmoore@erols.com
Guest
Posts: n/a
 
      3rd May 2006
I have an app that copies files from one directory to another and then
deletes the files from the original directory.

I have full permissions on the directories in question and can copy and
delete manually with no problem; however, while I can copy files
successfully using VBA (FileCopy), attempts to delete files (Kill or
[FileSystemObject].DeleteFile) return error 70 "Permission denied".

LAN staff have not been able to find the problem - all permissions on
the directories in question are apparently correct.

I'd appreciate any suggestions.

Thanks
Dave

 
Reply With Quote
 
 
 
 
Douglas J Steele
Guest
Posts: n/a
 
      3rd May 2006
Why not move the files, rather than copy then delete?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have an app that copies files from one directory to another and then
> deletes the files from the original directory.
>
> I have full permissions on the directories in question and can copy and
> delete manually with no problem; however, while I can copy files
> successfully using VBA (FileCopy), attempts to delete files (Kill or
> [FileSystemObject].DeleteFile) return error 70 "Permission denied".
>
> LAN staff have not been able to find the problem - all permissions on
> the directories in question are apparently correct.
>
> I'd appreciate any suggestions.
>
> Thanks
> Dave
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shift+delete doesn't delete files in outlook .inbox stalled peteraylmore Microsoft Outlook Discussion 1 28th Apr 2008 11:28 PM
Special permissions - Delete and Delete Files and Folders Paul Dunn Microsoft Windows 2000 0 2nd May 2006 08:02 PM
NTFS permission to delete files, but not delete or move folders =?Utf-8?B?R29yZG9u?= Microsoft Windows 2000 File System 0 11th Feb 2005 03:37 PM
Word 2003 - XP Home - delete not delete - files come back Xylophone Microsoft Word Document Management 10 24th Sep 2004 02:17 PM
Cannot follow link to open new window after Delete Cookies, Delete Files. Riaan Windows XP Internet Explorer 2 8th Apr 2004 01:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:29 AM.