mr_e_landis
Registered User.
- Local time
- Today, 09:08
- Joined
- Feb 16, 2005
- Messages
- 28
I am trying to delete a directory using a form.
I currently use the following code.
lets just say I have a series of directories in X:\data\ "dir1", "dir2", "etc."
I think I've just discovered that if I create extra folders within my created directories for example X:\data\dir1\newfolder it will tank.
I've set up error code to prevent a lot of errors from happening but yet here is another error. Its seams like there should be an easier way.
Does anyone know of a quick and easy way to delete a directory with all of its contents?
I don't think this would work but something as simple as this is what I'm looking for... I use Name Dir1 as Dir2 now to move files from one dir to another but use ton's of code to delete...
I currently use the following code.
Code:
Kill Dir1
RmDir Dir2
I think I've just discovered that if I create extra folders within my created directories for example X:\data\dir1\newfolder it will tank.
I've set up error code to prevent a lot of errors from happening but yet here is another error. Its seams like there should be an easier way.
Does anyone know of a quick and easy way to delete a directory with all of its contents?
I don't think this would work but something as simple as this is what I'm looking for... I use Name Dir1 as Dir2 now to move files from one dir to another but use ton's of code to delete...
Code:
I don't think this works!
Name Dir1 as Null