Saturday, August 30, 2008

Windows Command Prompt (part 3)

Oke… Now let’s continue our lesson with CMD. In this tutorial, I didn’t add BREAK and CHCP command intentionally because I also didn’t understand what is that command for :). I’m not perfect… so let’s talk about what I know..haha (",)

  • CACLS. This command use to Displays or modifies access control list (ACLs) of files. Let’s say your windows has more than one user Account, your account named “handsome” and your brother’s account named “ugly” for example. Your brother like to read your diary which you had wrote in MsWord so much, so you can’t even protect your privacy.
Now, with this command, you can protect your files so you become the one who can read your files!!!..
CACLS command uses with option, you can see it in its help. I will explain how to use it, furthermore, try it your self :). For example you wanna protect your diary.doc files from opened by your brother, (remember, you had go to your diary.doc’s folder first!):
cacls diary.doc /p ugly:N, that mean your brother account (ugly) is preventing from opening your files (N option), other option is R (read), W (write), C (change), F (full control). OR,
cacls diary.doc /d ugly, it’s same with /p but more simple and efficient :p
  • CHDIR, this is used to change directory. Same as CD command

  • CHKDSK, or check disk. Is used to check a disk and displays a status report. It’s same with analyze in disk defragment. This command need an administrator login. Can be use with /f option to fixes errors on the disk (but doesn’t work sometimes :p).
  • CHKNTFS. Used to displays or modifies the checking of the disk at boot time, another command which is same with analyze in disk defragment (CHKDSK), but this one can add a schedules to check disk on next reboot.

Related Posts by Categories



0 comments:

Template by - Abdul Munir - 2008