tim huybreckx
New member
- Local time
- Today, 15:30
- Joined
- Apr 5, 2004
- Messages
- 5
How can I copy/move a folder to another location? (vba acces)
How can I delete a folder? (vba access)
I have found the function .filesearch to search a folder, but can't find anything to copy/move it. I have to copy/move the folder to a location where the files that need to be modified are centralized.
A dll function is good too.
ex. copy c:\tmp\tim to --> c:\programfiles\tim (after the files are modified i move them back to the original position)
Here's the theory.
All files are stored here c:\tmp\tim
If anyone wants to change anything he requests a modifie
You can't change the files in c:\tmp\tim so i have to copy the folder elsewhere so that the person can make changes ex. to c:\programfiles\modified
After the person made the changes a superior has to give authority to put the modified files in the good directory (c:\tmp\tim) so I move c:\programfiles\modified back to c:\tmp\tim (the dir c:\programfiles\modified has to be removed/deleted)
So I also need a function to remove folders.
This is what I've found so far:
object.CopyFolder "c:\tmp\tim\*", "c:\programsfiles\modified"
What does object mean?
object.MoveFolder source, destination
object.DeleteFolder folderspec[, force]
Does anyone have a specific example about these things (especially about object)?
I hope anyone can help me.
Tx
How can I delete a folder? (vba access)
I have found the function .filesearch to search a folder, but can't find anything to copy/move it. I have to copy/move the folder to a location where the files that need to be modified are centralized.
A dll function is good too.
ex. copy c:\tmp\tim to --> c:\programfiles\tim (after the files are modified i move them back to the original position)
Here's the theory.
All files are stored here c:\tmp\tim
If anyone wants to change anything he requests a modifie
You can't change the files in c:\tmp\tim so i have to copy the folder elsewhere so that the person can make changes ex. to c:\programfiles\modified
After the person made the changes a superior has to give authority to put the modified files in the good directory (c:\tmp\tim) so I move c:\programfiles\modified back to c:\tmp\tim (the dir c:\programfiles\modified has to be removed/deleted)
So I also need a function to remove folders.
This is what I've found so far:
object.CopyFolder "c:\tmp\tim\*", "c:\programsfiles\modified"
What does object mean?
object.MoveFolder source, destination
object.DeleteFolder folderspec[, force]
Does anyone have a specific example about these things (especially about object)?
I hope anyone can help me.
Tx
Last edited: