<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/nobotaka/">
    <title>備忘録</title>
    <link>http://w.atwiki.jp/nobotaka/</link>
    <atom:link href="https://w.atwiki.jp/nobotaka/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>備忘録</description>

    <dc:language>ja</dc:language>
    <dc:date>2015-04-03T23:54:34+09:00</dc:date>
    <utime>1428072874</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/nobotaka/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nobotaka/pages/28.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nobotaka/pages/27.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nobotaka/pages/26.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nobotaka/pages/25.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nobotaka/pages/24.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nobotaka/pages/23.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nobotaka/pages/22.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nobotaka/pages/1.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/nobotaka/pages/21.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/nobotaka/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/nobotaka/pages/2.html</link>
    <description>
      *EXCEL
-[[DBアクセス&gt;A0001-01]]
-[[比較&gt;BAT01]]

----
*VB
-[[bat_メニュー&gt;BAT01]]
-[[bat_比較&gt;BAT02]]
-[[BAT03]]
-[[WSH_01]]
-[[VBA01]]
-[[VBA02]]
-[[VBA03_テキストから一覧出力&gt;VBA03]]
-[[VBA04_テキストの複写置換&gt;VBA04]]
-[[VBA05_テキストから展開&gt;VBA05]]
-[[VBA06]]
-[[JAVA]]
-[[oracle01]]
-[[oracle_動的ビューからプラン取得&gt;oracle02]]

&amp;link_pagelist()

//**更新履歴
//#recent(20)
*大見出し    </description>
    <dc:date>2015-04-03T23:54:34+09:00</dc:date>
    <utime>1428072874</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nobotaka/pages/28.html">
    <title>A0001-01</title>
    <link>https://w.atwiki.jp/nobotaka/pages/28.html</link>
    <description>
      aaaaaa    </description>
    <dc:date>2015-04-03T23:54:03+09:00</dc:date>
    <utime>1428072843</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nobotaka/pages/27.html">
    <title>top</title>
    <link>https://w.atwiki.jp/nobotaka/pages/27.html</link>
    <description>
      備忘録    </description>
    <dc:date>2015-04-03T23:52:04+09:00</dc:date>
    <utime>1428072724</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nobotaka/pages/26.html">
    <title>VBA06</title>
    <link>https://w.atwiki.jp/nobotaka/pages/26.html</link>
    <description>
      Sub 複写置換()
     
    Dim n As Integer
    Dim strFILE, strREC As String
    
    &#039;初期処理
    n = 2
    
    &#039;主処理
    Do While Cells(n, 2).Value &lt;&gt; &quot;&quot;
        &#039;フォルダ一覧の処理
        Call exec_dir
        n = n + 1
    Loop
    
    &#039;後処理

End Sub

Sub exec_dir()
        
    &#039;初期処理(ファイル一覧の取得)
    strFILE = Dir(Cells(n, 2) &amp; &quot;\&quot; &amp; Cells(n, 3), vbNormal)
    
    &#039;ファイル編集
    Do While strFILE &lt;&gt; &quot;&quot;

        &#039;ファイルの読み込み
        Call file_edit
        strFILE = Dir()
    Loop

End Sub

Sub file_edit()
    &#039;初期処理(オープン)
    Open Cells(n, 2) &amp; &quot;\&quot; &amp; strFILE For Input As #1

    
    &#039;読み込み
    &#039; ファイルのEOF(End of File)まで繰り返す
    Do Until EOF(1)
        &#039;読み込み
        Line Input #1, strREC
                
        &#039;判定
        If Is_out Then
        
        &#039;出力
        strREC = Replace(strREC, Cells(n, 5), Cells(n, 6), , , vbBinaryCompare)
        Print #2, strREC
    Loop
    
    &#039;終了処理
    Close


End Sub    </description>
    <dc:date>2014-03-26T00:40:40+09:00</dc:date>
    <utime>1395762040</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nobotaka/pages/25.html">
    <title>BAT03</title>
    <link>https://w.atwiki.jp/nobotaka/pages/25.html</link>
    <description>
      @rem --------------------------------------------------
@rem 日付月のファイル作成
@rem test004.bat AAA → AAA20130701121329SSS.bat

@set F_DIR=C:\Users\noboru\Documents\dev\trunk\dos\aaa01
@set SUB_SYS=SSS

@set /P  DATE_NEW=&lt;test004_date.bat
@rem echo %DATE_NEW%
@set YYYYMMDDHHMMSS=%DATE_NEW:~0,4%%DATE_NEW:~5,2%%DATE_NEW:~8,2%_%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2%
@rem echo %YYYYMMDDHHMMSS: =0%
@type nul &gt; %F_DIR%\%1%YYYYMMDDHHMMSS: =0%%SUB_SYS%.dat

@rem --------------------------------------------------
@rem 日付を翌日に更新
@rem test005.bat 2013/01/01 

@echo WScript.Echo DateAdd(&quot;d&quot;,1,WScript.Arguments(0)) &gt; tmp.vbs
@set /P DATE_OLD=&lt;test004_date.bat
@for /F &quot;delims=&quot; %%A in ( &#039;cscript //Nologo tmp.vbs %DATE_OLD%&#039; ) do @set DATE_NEW=%%A
@echo %DATE_NEW% &gt; test004_date.bat

@rem --------------------------------------------------
@rem ファイルを復元
@rem test006.bat

@set F_DIR=C:\Users\noboru\Documents\dev\trunk\dos\aaa01
@set T_DIR=C:\Users\noboru\Documents\dev\trunk\dos\aaa02

@set DATE=20130107
@set SUB_SYS=SSS
@set FILE_LIST=test006.lst
@del %FILE_LIST%
@dir /a-d /s /b  %F_DIR%\*%DATE%*%SUB_SYS%.dat &gt; %FILE_LIST%
@for /F &quot;delims=&quot; %%A in ( %FILE_LIST% ) do @(
copy %%A %T_DIR%
del %%A
)     </description>
    <dc:date>2013-07-06T01:42:31+09:00</dc:date>
    <utime>1373042551</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nobotaka/pages/24.html">
    <title>VBA05</title>
    <link>https://w.atwiki.jp/nobotaka/pages/24.html</link>
    <description>
      Sub aaaa015_出力()

    Dim intFF As Integer            &#039; FreeFile値
    Dim strREC As String            &#039; 読み込んだレコード内容
    Dim strTitle As Variant         &#039; タイトル
    Dim GYO As Long                 &#039; セルの行
    Dim COL As Long                 &#039; セルのカラム

    &#039; FreeFile値の取得(以降この値で入出力する)
    intFF = FreeFile
    
    Cells.Clear
    
    &#039;タイトル
    GYO = 1
    COL = 1
    For Each strTitle In Split(&quot;a01,a02,a03&quot;, &quot;,&quot;)
        Cells(GYO, COL).Value = strTitle
        COL = COL + 1
    Next strTitle

    Open &quot;E:\Documents\dev\trunk\vba\aaa01.txt&quot; For Input As #intFF
    GYO = 2
    &#039; ファイルのEOF(End of File)まで繰り返す
    Do Until EOF(intFF)
        &#039; 改行までをレコードとして読み込む
        Line Input #intFF, strREC
        If InStr(strREC, &quot;aaa1&quot;) &gt; 0 Then
            If Cells(GYO, 1).Value &lt;&gt; &quot;&quot; Then
                GYO = GYO + 1
            End If
            strREC = Trim(Replace(strREC, vbTab, &quot;&quot;))
            Cells(GYO, 1).Value = strREC
        End If
        If InStr(strREC, &quot;aaa2&quot;) &gt; 0 Then
            If Cells(GYO, 2).Value &lt;&gt; &quot;&quot; Then
                GYO = GYO + 1
            End If
            strREC = Trim(Replace(strREC, vbTab, &quot;&quot;))
            Cells(GYO, 2).Value = strREC
        End If
        If InStr(strREC, &quot;aaa3&quot;) &gt; 0 Then
            If Cells(GYO, 3).Value &lt;&gt; &quot;&quot; Then
                GYO = GYO + 1
            End If
            strREC = Trim(Replace(strREC, vbTab, &quot;&quot;))
            Cells(GYO, 3).Value = strREC
        End If
        
    Loop
    &#039; 指定ファイルをCLOSE
    Close #intFF

End Sub    </description>
    <dc:date>2013-05-30T00:14:16+09:00</dc:date>
    <utime>1369840456</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nobotaka/pages/23.html">
    <title>WSH_01</title>
    <link>https://w.atwiki.jp/nobotaka/pages/23.html</link>
    <description>
      If WScript.Arguments.Count = 0 Then WScript.Quit
Set FS = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set SA = CreateObject(&quot;Shell.Application&quot;)

&#039;圧縮ファイル名を作成します
FileName = Year(Date) &amp; _
  Right(&quot;0&quot; &amp; Month(Date),2) &amp; Right(&quot;0&quot; &amp; Day(Date),2) &amp; _
  Right(&quot;0&quot; &amp; Hour(Time),2) &amp; Right(&quot;0&quot; &amp; Minute(Time),2) &amp; _
  Right(&quot;0&quot; &amp; Second(Time),2) &amp;  &quot;.zip&quot;
ZipFile = Replace(WScript.ScriptFullName, WScript.ScriptName, FileName)

&#039;新しいzipファイルを作成します
With FS.CreateTextFile(ZipFile)
  .Write &quot;PK&quot; &amp; Chr(5) &amp; Chr(6) &amp; String(18,0)
  .Close
End With

&#039;zipファイルに引数で受け取ったファイルを入れます
i = 0
With SA.NameSpace(ZipFile)
  For Each file In WScript.Arguments
    .CopyHere file
    i = i + 1
    Do Until .Items.Count = i
      WScript.sleep 100
    Loop
  Next
End With

WScript.Echo &quot;Done..&quot;    </description>
    <dc:date>2013-04-25T01:28:54+09:00</dc:date>
    <utime>1366820934</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nobotaka/pages/22.html">
    <title>bat02</title>
    <link>https://w.atwiki.jp/nobotaka/pages/22.html</link>
    <description>
      @ECHO OFF
title ウィンドウのタイトル

FC /a filelist2b1.bat filelist2b2.bat &gt; nul
if errorlevel 1 goto fail

call :func_true
goto :EOF

:fail
call :func_false
goto :EOF


:============
:func_true
echo 正常終了
exit /b

:============
:func_false
echo 異常終了
exit /b

:============    </description>
    <dc:date>2013-04-25T00:10:46+09:00</dc:date>
    <utime>1366816246</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nobotaka/pages/1.html">
    <title>BAT01</title>
    <link>https://w.atwiki.jp/nobotaka/pages/1.html</link>
    <description>
      rem ****************************
rem *　キー入力でメニュー選択　*
rem ****************************

:start
@echo off
cls
echo.
echo 　　　1. メニュー・１
echo 　　　2. メニュー・２
echo.
echo 　　　9. 　終　了
echo.
set choice=
set /p choice=　　　　　　　“メニュー番号”[Enter] 　
if not &#039;%choice%&#039;==&#039;&#039; set choice=%choice:~0,1%
if &#039;%choice%&#039;==&#039;1&#039; goto menu-1
if &#039;%choice%&#039;==&#039;2&#039; goto menu-2
if &#039;%choice%&#039;==&#039;9&#039; goto end
echo.
echo 　　　　　　　［ %choice% ］・・・ メニュー番号が違います。
goto loop

:menu-1
cls
echo.
echo.
echo 　　　　　【メニュー・１】を表示しています
goto loop

:menu-2
cls
echo.
echo.
echo 　　　　　　　　　《メニュー・２》を表示しています
goto loop

:loop
echo.
echo.
echo 　　　何かキーを押すと、メニューに戻ります。
echo.
pause &gt; null
echo.
goto start

:end
exit




set path=%path%;x:\ghost

x:
cd \ghost
rem --- This will create primary OS drive configuration ---
ghost32.exe /setosdrives /blind &gt;&gt; x:\ghost\startlog.txt

subst z: c:\ghost_image
subst z: d:\ghost_image
subst z: e:\ghost_image
subst z: f:\ghost_image
subst z: g:\ghost_image
subst z: h:\ghost_image
subst z: i:\ghost_image
subst z: j:\ghost_image
subst z: k:\ghost_image
subst z: l:\ghost_image
subst z: m:\ghost_image
subst z: n:\ghost_image

:start
cls
@echo off
echo ********************************************************************
echo Recovery Menu [WindowsXP Professional ServicePack2]
echo ********************************************************************
echo.
echo HDD Currentry Status:
gdisk32 /status
echo.
echo ********************************************************************
echo.
echo Select Menu [1-3 , 0]
echo --------------------------------------------------------------------
echo.
echo [1] : OS Recovery [Full Size Partition 1st-HDD]
echo [2] : OS Recovery [Custom Size Partition 1st-HDD]
echo [3] : Pertition Recovery [Need to create a partition beforehand.]
echo.
echo [0] : Shutdown
echo ********************************************************************
set /p NUM=&quot;Please select No. &gt;&quot;
if &quot;%NUM%&quot;==&quot;1&quot; goto 1
if &quot;%NUM%&quot;==&quot;2&quot; goto 2
if &quot;%NUM%&quot;==&quot;3&quot; goto 3
if &quot;%NUM%&quot;==&quot;0&quot; goto 0
goto
end

:1
cls
echo -------------------------------
echo Disk Recovery Selected [Full]
echo -------------------------------
echo Plase wait...
GHOST32.EXE -clone,mode=restore,src=z:\image.gho,dst=1,sze1=100p -sure -rb
goto
end

:2
cls
echo -------------------------------
echo Disk Recovery Selected [Costom]
echo -------------------------------
echo Plase wait...
GHOST32.EXE -clone,mode=restore,src=z:\image.gho,dst=1,sze1=100p -rb
goto
end

:3
cls
echo -------------------------------
echo Pertition Recovery Selected
echo -------------------------------
echo Plase wait...
GHOST32.EXE -clone,mode=prestore,src=z:\image.gho:1,dst=1:1 -sure -rb
goto
end

:0
cls

:end
echo Shutdown...
echo.
pause
wpeutil shutdown    </description>
    <dc:date>2013-04-25T00:09:02+09:00</dc:date>
    <utime>1366816142</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/nobotaka/pages/21.html">
    <title>vba04</title>
    <link>https://w.atwiki.jp/nobotaka/pages/21.html</link>
    <description>
      Sub 複写置換()
    
    Dim n As Integer
    Dim strFILE, strREC As String
    
    n = 2
    Do While Cells(n, 2).Value &lt;&gt; &quot;&quot;

        strFILE = Dir(Cells(n, 2) &amp; &quot;\&quot; &amp; Cells(n, 3), vbNormal)
        Do While strFILE &lt;&gt; &quot;&quot;

            &#039; 指定ファイルをOPEN(入力モード)
            Open Cells(n, 2) &amp; &quot;\&quot; &amp; strFILE For Input As #1

            &#039; 指定ファイルをOPEN(出力モード)
            Open Cells(n, 4) &amp; &quot;\&quot; &amp; strFILE For Output As #2

            &#039; ファイルのEOF(End of File)まで繰り返す
            Do Until EOF(1)
                Line Input #1, strREC
                strREC = Replace(strREC, Cells(n, 5), Cells(n, 6), , , vbBinaryCompare)
                Print #2, strREC
            Loop
            Close
            strFILE = Dir()
        Loop
        n = n + 1
    Loop
End Sub    </description>
    <dc:date>2013-04-19T00:40:52+09:00</dc:date>
    <utime>1366299652</utime>
  </item>
  </rdf:RDF>
