|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
|
VB - Changing permissions
Is there a way to change permissions on a folder being copied from a CD to the hard drive? I am using a batch file to copy the data from the CD to the wwwroot. The only problem is the default permissions don't allow it to write to the database. Can I copy the folder over and also give the database write permissions?
Thanks for any help. |
|
|
|
|
|
#2 |
|
SQL nutcase
|
If you are using a batch file to copy the files, you have to make sure that the user that is logged in has permission to write in the folder. If you have scheduled the batch file (with AT), you have to make sure that the user of the "Messenger" service has permission to write in the folder. If you want to remove the "read only" attribute, use "attrib -r" in your batch file.
|
|
|
|
|
|
#3 |
|
Member (10 bit)
|
thanks.
so by using the attrib -r line it will allow us to read and write to that? Is there a way to do it for only 1 file (the database) in the batch file? |
|
|
|
|
|
#4 |
|
Member (12 bit)
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
|
Just do
attrib -r <filename> And all should work as you intend.
__________________
Paul M. Victorey ------------------ I am not responsible for any problems that may arise as a result of following my advice. This includes, but is not limited to, computer failure, loss of data, nuclear war, famine, boils, no clean laundry, your daughter running off with a biker gang, or armageddon. Take my advice at your own risk. Last edited by Paul Victorey; 06-12-2001 at 02:13 PM. |
|
|
|
|
|
#5 |
|
Member (10 bit)
|
Will do, thanks.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|