Looking for a batch file to check read-only status, IF then
Hi, I am trying to write a batch file that will check to see if a access database file is read only.
This is for a windows XP batch file
This is to assist in "taking home" a database that is on the network to work over the weekend. That way everyone on the network can read the Access database but cannot edit anything until the user "brings back" the database with another script.
IF database.mdb is read only
Abort script with a message displayed to the user.
If database.mdb IS NOT read only
Copy database.mdb c:\folder
ATTRIB +R R:\database.mdb
SUBST R:\ C:\FOLDER