TOP /other Windowsフォルダーにパスワード

あなたのPCにパスワード付きフォルダーを作れます。
Windowsのフォルダーを開く時にパスワードを求められるようになります。

手順(Me)

  1. パスワードを掛けたいフォルダーを開きます(初めは新規のフォルダーで試してください)
  2. 右クリックでメニューから「フォルダーのカスタマイズ」を選択
  3. ウィザードが開き「次へ」
  4. このフォルダーのHTMLのテンプレートを選択又は編集にチェックが入っていることを確認「次へ」
  5. このテンプレートを編集するにチェック「次へ」
  6. メモ帳が開きます。これを以下の要領で編集します。(なにも難しいことはありませんよ)
変更前:Meの場合
<!--
 * Copyright 1999 Microsoft Corporation.  All rights reserved.
 -->

<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=shift_jis">
    </head>

以下省略
変更後:Meの場合
<!--
 * Copyright 1999 Microsoft Corporation.  All rights reserved.
 -->
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=shift_jis">

<SCRIPT language="JavaScript">
<!--
pass = "111111";        //パスワード
action="winclose";      //パスワードの違う時の動作(閉じずに戻るときは空白)
//----------------------
passlength="";
for(i=0;i<pass.length;i++)passlength+="*";
input = prompt("password for opening a folder\nパスワードを入力してください",passlength);
if(input != pass) {
if(input && input != passlength)
alert("A password is different\n入力したパスワードが間違っています。");
if(action){
window.opener="dummy";
window.close();}
else{location.href = "../../";}
}
// -->
</SCRIPT>

    </head>

赤色の部分を追加します
青色のパスワードは変更してください。
  1. メモ帳を閉じ「完了」
以上でフォルダーにパスワードが掛かりあなたしか開くことができなくなります。

手順(Windows98)

  1. パスワードを掛けたいフォルダーを開きます(初めは新規のフォルダーで試してください)
  2. 初めにツールバーの表示をクリック「フォルダーオプション」を選択
  3. 全般からカスタムをチェック「設定」をクリック
  4. 「HTMLコンテンツがあるすべてのフォルダで表示する」にチェックを入れる「 OK 」[閉じる」
  5. 右クリックでメニューから「このフォルダーのカスタマイズ」を選択
  6. 「HTMLドキュメント作成または編集する」にチェックが入っていることを確認「次へ」「次へ」
  7. メモ帳が開きます。これを以下の要領で編集します。(なにも難しいことはありませんよ)
変更後:Windows98の場合
<!-- 
 * This file was automatically generated by Microsoft Internet Explorer 4.0 
 * using the file %THISDIRPATH%\folder.htt (if customized) or
 * %TEMPLATEDIR%\folder.htt (if not customized).
 -->

<html>
	<style>
		body		{font: 9pt/10pt MS UI Gothic; margin: 0}
		#FileList	{position: absolute; left: 30%; width: 70%; height: 100%}
		#Media		{margin-left: 15px}
		#Panel		{position: absolute; width: 30%; height: 100%; overflow: auto}
		#PieChart	{width: 100px; height: 50px; margin-top: 10px}
		#Thumbnail	{width: 160px; height: 160px; margin-top: 0px}
		#Status		{margin-left: 15px}
		#Brand		{position: absolute; left: 30%; width: 70%; height: 100%; overflow: auto}
		p		{margin-left: 15px; margin-top: 15px; margin-right: 15px}
		p.Title		{font: 16pt; font-weight: bold; margin-top: 5px}
		p.LogoLine	{margin-left: 0; margin-top: -5px; margin-right: 0; margin-bottom: 20px}
		p.Warning	{font-weight: bold; color: red}
		p.Links		{margin-top: 5px}
		a.Command	{font-weight: bold}
		div.Release     {width: 160px; text-align: right; background: buttonface; padding: 0px, 8px, 4px, 8px}
	</style>

	<head>

<SCRIPT language="JavaScript">
<!--
pass = "111111";        //パスワード
action="winclose";      //パスワードの違う時の動作(閉じずに戻るときは空白)
//----------------------
passlength="";
for(i=0;i<pass.length;i++)passlength+="*";
input = prompt("password for opening a folder\nパスワードを入力してください",passlength);
if(input != pass) {
if(input && input != passlength)
alert("A password is different\n入力したパスワードが間違っています。");
if(action){
window.opener="dummy";
window.close();}
else{location.href = "../../";}
}
// -->
</SCRIPT>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=shift_jis">
		<!-- allow references to any resources you might add to the folder -->
		<!-- (a "webbot" is a special wrapper for FrontPage compatibility) -->
		<!-- webbot bot="HTMLMarkup" tag="base" startspan -->
		<base href="%THISDIRPATH%\">
		<!-- webbot bot="HTMLMarkup" endspan -->

赤色の部分を追加します
青色のパスワードは変更してください。
  1. メモ帳を閉じ「完了」
  2. action="winclose";を選択時に(パスワードが違う時に閉じる)
    閉じる時に閉じるかどうかの確認ダイアログが出るときにはaction="";としてください。