Deleting a temp file 
Author Message
 Deleting a temp file

I'm working with files, and I have to create a temp file in the
process.  Is there a command to delete a file in VB?


Tue, 23 Apr 2002 03:00:00 GMT  
 Deleting a temp file


Quote:
> I'm working with files, and I have to create a temp file in the
> process.  Is there a command to delete a file in VB?

Kill "MyFile.tmp"

Sent via Deja.com http://www.deja.com/
Before you buy.



Tue, 23 Apr 2002 03:00:00 GMT  
 Deleting a temp file
A fairly simple perusal of the VB help files would tell you that the
statement "Kill" will do what you want.

Joel Moore

Quote:

>I'm working with files, and I have to create a temp file in the
>process.  Is there a command to delete a file in VB?



Tue, 23 Apr 2002 03:00:00 GMT  
 Deleting a temp file
Yes.  Use the Kill command.

Kenny Acock
<><

Quote:
> I'm working with files, and I have to create a temp file in the
> process.  Is there a command to delete a file in VB?



Tue, 23 Apr 2002 03:00:00 GMT  
 Deleting a temp file


Quote:
> I'm working with files, and I have to create a temp file in the
> process.  Is there a command to delete a file in VB?

kill


Tue, 23 Apr 2002 03:00:00 GMT  
 Deleting a temp file

Quote:

> Yes.  Use the Kill command.

> Kenny Acock
> <><

> > I'm working with files, and I have to create a temp file in the
> > process.  Is there a command to delete a file in VB?

In UNIX when I create a temp file I immediately "unlink" it. Since it is
already open, I can continue to use it and then when the program exits the
file will automatically disappear. Is there any equivalent with VB6?


Fri, 26 Apr 2002 03:00:00 GMT  
 Deleting a temp file
Not that I'm aware of, but you may be able to emulate this in the main
form's unload event.  (If you can record the location of the file somewhere
you can delete it when the main form's unload event fires.)

Kenny Acock
<><

Quote:
> In UNIX when I create a temp file I immediately "unlink" it. Since it is
> already open, I can continue to use it and then when the program exits the
> file will automatically disappear. Is there any equivalent with VB6?



Sat, 27 Apr 2002 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Temp Files Not Deleting after closing Word 2002

2. How to delete files in Windows\Temp?

3. Auto-Delete Temp file

4. Deleting Temp internet files

5. Delete all temp internet files for all users

6. Delete temp.internet files ecc..(newbie)

7. How can I delete cookies and temp internet files w/VBS

8. Deleting Temp Internet files, new approach ?

9. Delete cookies and temp. inet files with VBS

10. Deleting Temp Internet Files via script

11. deleting files from ie temp folder

12. How to delete files in Windows\Temp?

 

 
Powered by phpBB® Forum Software