Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-11-2001, 02:51 PM   #1
Member (10 bit)
 
Join Date: May 1999
Location: Orlando, FL
Posts: 975
Send a message via ICQ to artsapimp
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.
artsapimp is offline   Reply With Quote
Old 06-12-2001, 03:12 AM   #2
SQL nutcase
 
mosquito's Avatar
 
Join Date: Sep 2000
Location: Belgium
Posts: 1,136
Send a message via AIM to mosquito
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.
mosquito is offline   Reply With Quote
Old 06-12-2001, 08:53 AM   #3
Member (10 bit)
 
Join Date: May 1999
Location: Orlando, FL
Posts: 975
Send a message via ICQ to artsapimp
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?
artsapimp is offline   Reply With Quote
Old 06-12-2001, 02:05 PM   #4
Member (12 bit)
 
Paul Victorey's Avatar
 
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.
Paul Victorey is offline   Reply With Quote
Old 06-12-2001, 02:14 PM   #5
Member (10 bit)
 
Join Date: May 1999
Location: Orlando, FL
Posts: 975
Send a message via ICQ to artsapimp
Will do, thanks.
artsapimp is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:55 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2