DeleteFile Type Library - Does anyone know? 
Author Message
 DeleteFile Type Library - Does anyone know?

Does anyone know which Type Library I need to choose in
the References?  I can't get Access 2000 to let me use
this method, so I figure I need to add the library?????


Tue, 19 Jul 2005 00:01:31 GMT  
 DeleteFile Type Library - Does anyone know?
Hi,

You're probably wanting the "Microsoft Scripting Runtime" library
(scrrun.dll). This contains a "FileSystemObject" class that has a DeleteFile
method.

Alternatively, you can just use the VBA 'Kill' statement to delete a file.

----
Simon Lewis


Quote:
> Does anyone know which Type Library I need to choose in
> the References?  I can't get Access 2000 to let me use
> this method, so I figure I need to add the library?????



Tue, 19 Jul 2005 00:23:54 GMT  
 DeleteFile Type Library - Does anyone know?
I had already tried scrrun.dll and it doesn't work.  I
switched to the Kill command and it does the job.

Thanks!!!

Quote:
>-----Original Message-----
>Hi,

>You're probably wanting the "Microsoft Scripting Runtime"
library
>(scrrun.dll). This contains a "FileSystemObject" class

that has a DeleteFile
Quote:
>method.

>Alternatively, you can just use the VBA 'Kill' statement
to delete a file.

>----
>Simon Lewis



>> Does anyone know which Type Library I need to choose in
>> the References?  I can't get Access 2000 to let me use
>> this method, so I figure I need to add the library?????

>.



Tue, 19 Jul 2005 01:11:41 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. AnyOne knows How It can Be Done?

2. AnyOne knows How It can Be Done?

3. Does anyone know how to register a file type in vb 4.0

4. Does anyone know how to implement UNIONS in VB types

5. Using the MODELENGLib library (Microsoft Visio Database Modeling Engine Type Library)

6. Great (IMHO) QuickBASIC library is almost done!!!

7. How to knowing when a query is done

8. I know someone has done this before...

9. COM add-in in Java - Anyone done it?

10. Has anyone done this with VB .Net?

11. Has anyone done anything adventurous in VB.Net??

12. Has anyone done a yEnc class for VB?

 

 
Powered by phpBB® Forum Software