Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing the attributes of a file 1

Status
Not open for further replies.

Junior1544

Technical User
Joined
Apr 20, 2001
Messages
1,267
Location
US
i have a excel import setup for my database... every thing works fine except one thing... i want access to delete the source file once it's done with every thing else... but some times the file is marked as read only, and access gives an error and stops the code...

how can i go about deleting the file any way, or turning the read only attribute off then deleting the file??

right now i'm using kill to delete the file.

--James JHauge@jmjpc.net
Life is change. To deny change is to deny life.
 
Dim MyFile As String
SetAttr MyFile, vbNormal
 
the more i looked, the harder it seemed... i was even working on using a batch file to change it... thank you...

--James JHauge@jmjpc.net
Life is change. To deny change is to deny life.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top