Moving folders from one network drive to another in Word 2000 VBA 
Author Message
 Moving folders from one network drive to another in Word 2000 VBA

Dear All,

I am having difficulty writing a macro to move a folder full of files from
one network drive to another.  I'm using a VBA macro in Word 2000 on
Winnt4.0.

I've tried using the filesystemobject.movefolder method and  the
folderobject.move method and both give the following result:

Run-time error '70' permission denied.

The code works fine to move folders between two drives on my local machine
("C:\" etc) but not on networked drives ("H:\") etc.  I know that I have the
relevant file permissions to the drives (I've checked share and fs level
permissions, and I can drag and drop the folders manually).

Ideally, I'd like to access these folders and files using UNC pathnames
rather than mapped drives, but I can't work out how to do this using the
filesystem object (whose only properties is the drives container and the
drives count!)

Is there another way of moving folders?  Could I maybe run a CommandPrompt
command to do it?

Any help greatly appreciated.

Tony Woodhouse

I.T. Manager - Brethertons Solicitors - England



Sat, 10 Jan 2004 17:57:54 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Moving folders from within a VBA macro in Word 2000

2. Differences on word 2002 and word 2000 vba

3. vba problem word 97 and not word 2000

4. Differences between VBA for Word 2000 and Word 97

5. Does Word VBA 2002 developed code run on Word 2000

6. Word 97 and Word 2000 VBA - Functionality Lost?

7. Mapping Network Drives in Windows 2000

8. Outlook 2000 VBA: Making New Appointment in Current Folder

9. protect folders by VBA in Outlook 2000

10. my own popup in folder contact with VBA and Outlook 2000

11. Office 2000 VBA Browse for Folder

12. Office 2000 VBA browse for folder

 

 
Powered by phpBB® Forum Software