简体   繁体   中英

compare file security settings between two files in Windows using cmd

similar to:

fc file1 file2

but I need results displayed of file properties or file security settings.

Playing just a bit I could manage to do for files A and B:

icacls A > A_file.txt
icacls B > B_file.txt

And compare the command results with:

fc A_file.txt B_file.txt

Maybe you need to do some processing to the original ICACLS output, or use a different tool than FC.

thanks @hernan i was able to accomplish what i needed with following

Echo Y| cacls filename1.ext

then

Echo Y| cacls filename2.ext

and compare on screen.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM