copying .mdb to a CD enables "read-only". How to avoid?

  • Thread starter Thread starter rudypohl
  • Start date Start date
R

rudypohl

Guest
Hi There:

Everytime I copy my .mdb file to a CD the "read-only" property gets enabled, and as a result, when the file is copied onto another computer it can only be used in "read-only" mode. I cannot uncheck the "read-only" property on the copy of the mdb file.

How do I make a copy of the mdb file onto a CD without the "read-only" property being automatically enabled?

I am using Access 2000. My CD burniung software is Esay CD Creator 5.

thanks,
Rudy
 
Once you copy the file from the CD to a hard drive, you can reset the read-only attribute.
 
Because a CD is fixed media when you burn your db to it, it automatically becomes read only. Once copied back to a hard drive, right click and remove the read only property.
Dave
 
Any file you burn to a CD will have the Read Only attribute when you copy it to a hard drive. I always zip my files up and use the self-extracting option to avoid having to mess with the Read Only attribute.

HTH
 
If you use Windows XP, all files copied from a cd will be removed the Read-Only property out for you automatically.

For me, I use the code below to remove the property. Just put it in a start-up form. Though it will pop up the message once and only when the db is first open.

Code:
Private Sub Form_Open(Cancel As Integer)
    Dim strPath As String, Result As Long
    If GetAttr(CurrentDb.Name) And vbReadOnly = 1 Then
        SetAttr CurrentDb.Name, vbNormal
        strPath = SysCmd(acSysCmdAccessDir) & "MSAccess.exe " & CurrentDb.Name
        Call Shell(strPath, vbMaximizedFocus)
    DoCmd.Quit
    End If
End Sub
 

Users who are viewing this thread

Back
Top Bottom