Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello

when i copy program to new windows7, must change permission off database file(data1.mdf , data1_log.ldf)

by below method :((
File\rclk\properties\security\edit\add\advance\Find Now- Evryone-ok\ok\Full Control\ok

what Solution?:confused:
that it run automaticly or This step is not required
Posted

1 solution

Not sure if I understand your question correctly, but if you want to change directory permissions for example in a batch, you can use CACLS[^]


Example:
cacls E:\accounts\bin\Debug /E /G "Everyone":F
 
Share this answer
 
v2
Comments
faezun 22-Dec-11 10:01am    
thank you

but Was complicated

for example: my file is : E:\accounts\bin\Debug\data1.mdf
File\rclk\properties\security\edit\add\advance\Find Now- Evryone-ok\ok\Full Control\ok

what is simple command for this method
Wendelius 22-Dec-11 16:34pm    
Answer updated

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900