|
-
Sep 29th, 2000, 12:49 PM
#1
Thread Starter
Addicted Member
Hi everybody,
I am compacting a database file and need to delete the old file and rename the new one. Can anyone help me with the VB code/syntax used to rename & delete files? Your help is appreciated.
-
Sep 29th, 2000, 12:56 PM
#2
Fanatic Member
Take a look at the MSDN documentation and look for:
FileSystemObject. This should help you with your file needs.
-Excalibur
-
Sep 29th, 2000, 01:01 PM
#3
Addicted Member
Here you go ;)
to delete a file use this:
where filepath = the files path
to rename a file do this:
where oldpath = the original name and directory
and newpath = new name and directory
Code:
Name oldpath as newpath
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|