password protect

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
looksthatmatter
Posts: 10
Joined: 18 Jul 2013 10:38

password protect

#1 Post by looksthatmatter » 20 Jul 2013 05:59

hi guys,
its there a way to password protect a folder using a batch code or DOS command????
without using any external software

Samir
Posts: 384
Joined: 16 Jul 2013 12:00
Location: HSV
Contact:

Re: password protect

#2 Post by Samir » 20 Jul 2013 17:03

An old trick from the DOS days was to use an alt-character that didn't show up in the directory name. Because you can't see the character, you couldn't cd to it. 8)

But using any file manager gets around this pretty quickly. :(

looksthatmatter
Posts: 10
Joined: 18 Jul 2013 10:38

Re: password protect

#3 Post by looksthatmatter » 20 Jul 2013 21:32

yep i got it now it worked...thanks

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: password protect

#4 Post by penpen » 21 Jul 2013 14:00

Even in MS_DOS 6.22 days this was not a safe way.
If you want to see, what is inside you just have to use dir and xcopy.
Lets assume you are in parent directory of the alt-char named folder,
TEST is an unused filename, and A is part of this alt-char named folder (verified using dir),
then this is a way to view the files within:

Code: Select all

xcopy *A* TEST /S /V /I /H /Y


I know of three ways to let nobody watch your files, but sadly i don't know how to batch any of them:
The first is to change the Security settings of the directory.
Right-click the folder, click Properties, and then click the Security tab, and then you can change who should see your folder and files within, ... .
The bad thing is that you may open this directory only with your user login and password.
So if you want to do such on your system you should create a new user only for this, so other don't have access to your main profile.

Another way is, to create a zip file with activated password and add files to these compressed folder, this may be done via VBS or JScript that can be executed on any widows pc via cscript.exe.

The last way is, to install the loopback adapter and create a network share any folder using the loopback adapter. A password can easily set via teh windows dialogs.

None of them is absolutely secure, but if anybody want to break it he or she should be an admin to have a good chance.


Maybe another knows how to batch these things.

penpen

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: password protect

#5 Post by penpen » 28 Jul 2013 12:50

Just found this to set a password to a folder:
http://social.microsoft.com/Forums/en-US/9a0f17af-928e-4732-a3ba-90d54ed961ea/lock-folder-without-any-software
To make it more safe, just store the password in a textfile, that is hidden, too.

penpen

carlos
Expert
Posts: 503
Joined: 20 Aug 2010 13:57
Location: Chile
Contact:

Re: password protect

#6 Post by carlos » 28 Jul 2013 15:31

currently in windows is not permitted used non printable characters in filenames, except space.

Post Reply