1.

Solve : Using MS-DOS to Encrypt a Folder?

Answer»

Is there a command in MS-DOS to enable windows in-built Encryption on a specific folder and its contents ..
using Windows XP PRO SP2..Well, you could always set it as read-only with this:

attrib +r "path to folder" /S

But as for proper encryption, I haven't heard of anything built-in that does that.

You could probably download a program somewhere that allows you to encrypt through a Command Line Interpreter if you really needed to.Cipher.exe is the XP command-line encryption tool.

Quote from: contrex on July 29, 2007, 12:59:15 AM

Cipher.exe is the XP command-line encryption tool.



Is it included in XP too?

http://support.microsoft.com/kb/298009Quote from: WillyW on July 29, 2007, 09:01:09 AM
Quote from: contrex on July 29, 2007, 12:59:15 AM
Cipher.exe is the XP command-line encryption tool.



Is it included in XP too?

http://support.microsoft.com/kb/298009

Take a guess at why I wrote,

"Cipher.exe is the XP command-line encryption tool."?

Cipher.exe was included in all releases of Windows Xp and in Windows 2000 SP3 onwards.






Quote from: contrex on July 29, 2007, 11:07:03 AM
Quote from: WillyW on July 29, 2007, 09:01:09 AM
Quote from: contrex on July 29, 2007, 12:59:15 AM
Cipher.exe is the XP command-line encryption tool.



Is it included in XP too?

http://support.microsoft.com/kb/298009

Take a guess at why I wrote,

"Cipher.exe is the XP command-line encryption tool."?


Take a guess why I asked.

On that MS page, titled "Cipher.exe Security Tool for the Encrypting File System", it says, "(included with Windows 2000)".
A quick text search for 'XP' and it is not found on that page.

Quote
Cipher.exe was included in all releases of Windows Xp and in Windows 2000 SP3 onwards.

Excellent. As long as you are sure - that's good. The OP got good info.


Quote from: WillyW on July 29, 2007, 11:26:18 AM
Excellent. As long as you are sure - that's good. The OP got good info.

I SEE why you asked now. That page you found only mentions Windows 2000. Windows XP has everything Windows 2000 has, and more. There are other pages which make it clear that XP has cipher.exe. For example...

Quote
The release versions of Microsoft Windows XP and Microsoft Windows 2000 include the Cipher.exe command-line tool.

http://support.microsoft.com/kb/827014

There was a problem, fixed in XP Service pack 2, as follows:

The release versions of Microsoft Windows XP and Microsoft Windows 2000 include the Cipher.exe command-line tool. Cipher.exe can be used to manage Encrypting File System (EFS) data, but it cannot back up EFS certificates and registry keys.

But you can CHECK at home, folks! There's always good ol' command prompt...

Quote

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\>cipher /?
Displays or alters the encryption of directories [files] on NTFS partitions.

CIPHER [/E | /D] [/S:directory] [/A] [/I] [/F] [/Q] [/H] [pathname [...]]

CIPHER /K

CIPHER /R:filename

CIPHER /U [/N]

CIPHER /W:directory

CIPHER /X[:efsfile] [filename]

/A Operates on files as well as directories. The encrypted file
could become decrypted when it is modified if the parent
directory is not encrypted. It is recommended that you encrypt
the file and the parent directory.
/D Decrypts the specified directories. Directories will be marked
so that files added afterward will not be encrypted.
/E Encrypts the specified directories. Directories will be marked
so that files added afterward will be encrypted.
/F Forces the encryption operation on all specified objects, even
those which are already encrypted. Already-encrypted objects
are skipped by default.
/H Displays files with the hidden or system attributes. These
files are omitted by default.
/I Continues performing the specified operation even after errors
have occurred. By default, CIPHER stops when an error is
encountered.
/K Creates new file encryption key for the user running CIPHER. If
this option is chosen, all the other options will be ignored.
/N This option only works with /U. This will prevent keys being
updated. This is used to find all the encrypted files on the
local drives.
/Q Reports only the most essential information.
/R Generates an EFS recovery agent key and certificate, then writes
them to a .PFX file (CONTAINING certificate and private key) and
a .CER file (containing only the certificate). An administrator
may add the contents of the .CER to the EFS recovery policy to
create the recovery agent for users, and import the .PFX to
recover individual files.
/S Performs the specified operation on directories in the given
directory and all subdirectories.
/U Tries to touch all the encrypted files on local drives. This will
update user's file encryption key or recovery agent's key to the
current ones if they are changed. This option does not work with
other options except /N.
/W Removes data from available unused disk space on the entire
volume. If this option is chosen, all other options are ignored.
The directory specified can be anywhere in a local volume. If it
is a mount point or points to a directory in another volume, the
data on that volume will be removed.
/X Backup EFS certificate and keys into file filename. If efsfile is
provided, the current user's certificate(s) used to encrypt the
file will be backed up. OTHERWISE, the user's current EFS
certificate and keys will be backed up.


directory A directory path.
filename A filename without extensions.
pathname Specifies a PATTERN, file or directory.
efsfile An encrypted file path.

Used without parameters, CIPHER displays the encryption state of
the current directory and any files it contains. You may use multiple
directory names and wildcards. You must put spaces between multiple
parameters.

c:\>


Quote from: contrex on July 29, 2007, 12:02:12 PM
I see why you asked now. That page you found only mentions Windows 2000.

Exactly.

Quote
Windows XP has everything Windows 2000 has, and more. There are other pages which make it clear that XP has cipher.exe. For example...

Quote
The release versions of Microsoft Windows XP and Microsoft Windows 2000 include the Cipher.exe command-line tool.

http://support.microsoft.com/kb/827014
...


Thanks for the link to this other page at MS.


Did you notice something else amusing?

The page I found - the one that makes it seem like cipher.exe is not included with XP - says, "Last Review:February 21, 2007"

The page you just gave us the link for - the one that makes it quite clear that cipher.exe is included in XP - says, "Last Review:October 26, 2006"

Gotta luv 'em....


Thanks for clarifying.

Well, I've never heard of Cipher.exe before..... thanks contrex (heh, and I wasn't even the OP...)! I s'pose you learn something new everyday anyone know of any 3rd party encryption apps that work like cipher.exe does through cmd to encrypt entire folder contents but with different encryption types though...??


Discussion

No Comment Found