Lm th? no ? s? d?ng CACLS.EXE trong m?t t?p tin th?c thi

D?ch tiu ? D?ch tiu ?
ID c?a bi: 135268 - Xem s?n ph?m m bi ny p d?ng vo.

CHU Y: Bi vi?t ny ch? p d?ng cho phin b?n ti?ng Anh c?a Windows.

CACLS.EXE d?ng l?nh ti?n ch khng cung c?p m?t /Y chuy?n m t? ?ng tr? l?i v?i y cho c ? cc l b?n ch?c? Y/N d?u nh?c. Tuy nhin, b?n c th? s? d?ng l?nh echo ? ?ng nhn v?t y nh ?u vo ? cc l b?n ch?c? Y/N d?u nh?c khi b?n g?i Cacls.exe trong m?t t?p tin th?c thi.

L?p tr?nh tr? l?i v?i Yes ? cc l b?n ch?c? Y/N nh?c trong Batch t?p tin th?c thi, s? d?ng d?ng l?nh sau y trong t?p tin th?c thi c?a b?n:
echo y| cacls tn t?p /g tn ng?i dng:c?p php
LU ?: Khng g? m?t khng gian gi?a "y" v bi?u t?ng ?ng ?ng (|), N?u khng, Cacls.exe khng lm thay ?i quy?n.

Trong t?p tin b l?n hn, i?u ny c th? s?n xu?t l?i sau y tr?c khi ti?p t?c ?n d?ng k? ti?p:
Qu tr?nh c? g?ng ghi vo m?t ?ng ?ng khng t?n t?i.
L?nh echo khng tr?c xu?t ?u ra c?a n tr?c khi h? th?ng c m?t c h?i ? xy d?ng cc ?ng ?ng ? cacls. C nhi?u cch khc nhau ? lm vi?c xung quanh ny.

? thay th?, b?n c th? t?o m?t t?p tin gi? v?i ch? l m?t "y" trong n v s? d?ng c php:
Cacls "F:\Directory" /g "Mi?n ng?i dng": R< yes.txt="">
Ho?c b?n c th? s? d?ng ti?n ch xcacls cho php /y:
xcacls "F:\Directory" /e /g "Mi?n ng?i dng": R /y
? bi?t thm chi ti?t v? c php v cch s? d?ng ti?n ch Xcacls.exe, tham kh?o cc t?p tin Xcacls.doc ?c bao g?m trong cc Windows NT Server 4.0 Resource Kit b? sung ba.
Bung t?t c? | Thu g?n t?t c?

Thu?c tnh

ID c?a bi: 135268 - L?n xem xt sau cng: 17 Thang Tam 2011 - Xem xt l?i: 2.0
p d?ng
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Server 4.0 Standard Edition
  • Microsoft Windows NT Workstation 3.5
  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows NT Workstation 4.0 Developer Edition
T? kha:
kbmt KB135268 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny:135268

Cung cp Phan hi

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com