I am not sure whether it wil work but have you tried the "kill" statement?
 
Kill server.mappath("\database\myfile.mdb")

should work.

anhtruong52 <[EMAIL PROTECTED]> wrote:
I have the myfile.mdb in sub-folder database, sometime I want to 
delete it but after I do the following (correct location), it is 
still there:


set fs=Server.CreateObject("Scripting.FileSystemObject") 

set f = fs.GetFile("\database\myfile.mdb")
f.Delete[True]

set f=nothing
set fs=nothing


Does anyone know how to do it differently?
Thanks 

                
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

[Non-text portions of this message have been removed]




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to