{"id":3926,"date":"2014-01-15T13:42:32","date_gmt":"2014-01-15T04:42:32","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=3926"},"modified":"2014-01-15T13:56:17","modified_gmt":"2014-01-15T04:56:17","slug":"wordpress%e3%81%ae%e3%83%90%e3%83%83%e3%82%af%e3%82%a2%e3%83%83%e3%83%97%e3%82%92%e5%8f%96%e3%81%a3%e3%81%a6%e3%83%ad%e3%83%bc%e3%82%ab%e3%83%ab%e7%92%b0%e5%a2%83%e3%81%a7%e5%8b%95%e3%81%8b%e3%81%99-3","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=3926","title":{"rendered":"WordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u52d5\u304b\u3059\u65b9\u6cd5(3)"},"content":{"rendered":"<p>\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=3875\" title=\"WordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u52d5\u304b\u3059\u65b9\u6cd5(1)\" target=\"_blank\">WordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u52d5\u304b\u3059\u65b9\u6cd5(1)<\/a>\u300d\u3068\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=3883\" title=\"WordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u52d5\u304b\u3059\u65b9\u6cd5(2)\" target=\"_blank\">WordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u52d5\u304b\u3059\u65b9\u6cd5(2)<\/a>\u300d\u3067\u3001PHP\u3092\u5229\u7528\u3057\u3066WordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u308b\u65b9\u6cd5\u3068\u3001\u53d6\u3063\u305f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092XAMPP\u3092\u4f7f\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u52d5\u304b\u3059\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306fWordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u51e6\u7406\u306e\u81ea\u52d5\u5316\u3092\u8003\u3048\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=3875\" title=\"WordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u52d5\u304b\u3059\u65b9\u6cd5(1)\" target=\"_blank\">WordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u52d5\u304b\u3059\u65b9\u6cd5(1)<\/a>\u300d\u306b\u66f8\u3044\u3066\u3042\u308b\u65b9\u6cd5\u306f\u3001\u4e0b\u8a18\u306e\u6d41\u308c\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092\u898b\u308b\u3068\u3001\u5fc5\u8981\u306a\u4f5c\u696d\u306fPHP\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3068\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u3060\u3051\u306a\u306e\u3067\u3001<a href=\"http:\/\/support.microsoft.com\/kb\/879956\/ja\" title=\"FTP\u306e\u30d0\u30c3\u30c1\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\" target=\"_blank\">FTP\u30b3\u30de\u30f3\u30c9<\/a>\u3092\u4f7f\u3048\u3070\u7c21\u5358\u306b\u51e6\u7406\u3092\u81ea\u52d5\u5316\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u308b\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8(PHP)\u3092\u7528\u610f\u3059\u308b\u3002<\/li>\n<li>1. \u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b5\u30fc\u30d0\u30fc\u4e0a\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/li>\n<li>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f2. \u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u958b\u304d\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u3002<\/li>\n<li>3. \u3067\u4f5c\u6210\u3055\u308c\u305f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/li>\n<li>2. \u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305fPHP\u30d5\u30a1\u30a4\u30eb\u3068\u30013. \u3067\u4f5c\u6210\u3055\u308c\u305f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u30b5\u30fc\u30d0\u30fc\u4e0a\u304b\u3089\u524a\u9664\u3059\u308b\u3002<\/li>\n<\/ol>\n<p>\u65e9\u901f\u8003\u3048\u305f\u30b9\u30af\u30ea\u30d7\u30c8(VBScript)\u304c\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">'**************************************************\r\n' WordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u51e6\u7406\u81ea\u52d5\u5316 2014\/01\/14\r\n' @kinuasa\r\n'**************************************************\r\n\r\nOption Explicit\r\n\r\n'***** \u4e0b\u8a18\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5909\u66f4 *****\r\nPrivate Const Url = &quot;\/\/www.ka-net.org\/&quot; '\u30b5\u30a4\u30c8URL\r\nPrivate Const PHPFileName = &quot;(\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u7528\u30b9\u30af\u30ea\u30d7\u30c8\u540d)&quot;\r\nPrivate Const WordPressDir = &quot;(WordPress\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30d1\u30b9)&quot;\r\nPrivate Const DBName = &quot;(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d)&quot;\r\nPrivate Const DBUserName = &quot;(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u540d)&quot;\r\nPrivate Const DBPassWord = &quot;(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9)&quot;\r\nPrivate Const DBHostName = &quot;(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30db\u30b9\u30c8\u540d)&quot;\r\nPrivate Const FtpHostName = &quot;(FTP\u30b5\u30fc\u30d0\u30fc\u306e\u30db\u30b9\u30c8\u540d)&quot;\r\nPrivate Const FtpUserName = &quot;(FTP\u30b5\u30fc\u30d0\u30fc\u306e\u30e6\u30fc\u30b6\u30fc\u540d)&quot;\r\nPrivate Const FtpPassWord = &quot;(FTP\u30b5\u30fc\u30d0\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9)&quot;\r\nPrivate Const BackupDirName = &quot;(\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d)&quot;\r\nPrivate Const DownloadFolderPath = &quot;(\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5148\u30d5\u30a9\u30eb\u30c0\u306e\u30d1\u30b9)&quot;\r\n'********************************\r\n\r\nPrivate LocalPHPFilePath\r\nPrivate RemotePHPFilePath\r\n\r\n'PHP\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u30fb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\r\nWScript.Echo &quot;1. PHP\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u30fb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9&quot;\r\nLocalPHPFilePath = DownloadFolderPath &amp; ChrW(92) &amp; PHPFileName\r\nCreatePHPFile LocalPHPFilePath, WordPressDir, DBName, DBUserName, DBPassWord, DBHostName\r\nUploadFile FtpHostName, FtpUserName, FtpPassWord, &quot;\/&quot; &amp; BackupDirName, LocalPHPFilePath\r\n\r\n'\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u51e6\u7406\u5b9f\u884c\r\nWScript.Echo &quot;2. \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u51e6\u7406\u5b9f\u884c&quot;\r\nRemotePHPFilePath = Url &amp; BackupDirName &amp; &quot;\/&quot; &amp; PHPFileName\r\nOn Error Resume Next\r\nWith CreateObject(&quot;MSXML2.XMLHTTP&quot;)\r\n  .Open &quot;GET&quot;, RemotePHPFilePath, False\r\n  .setRequestHeader &quot;If-Modified-Since&quot;, &quot;Thu, 01 Jun 1970 00:00:00 GMT&quot; '\u30ad\u30e3\u30c3\u30b7\u30e5\u5bfe\u7b56(\u65e5\u4ed8\u306f\u9069\u5f53)\r\n  .Send\r\n  If .Status &lt;&gt; 200 Then\r\n    WScript.Echo &quot;\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u51e6\u7406\u304c\u5931\u6557\u3057\u307e\u3057\u305f\u3002&quot;\r\n    WScript.Quit()\r\n  End If\r\nEnd With\r\nOn Error GoTo 0\r\n\r\n'\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\r\nWScript.Echo &quot;3. \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9&quot;\r\nDownloadFiles FtpHostName, FtpUserName, FtpPassWord, DownloadFolderPath, &quot;\/&quot; &amp; BackupDirName\r\n\r\n'PHP,\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u524a\u9664\r\nWScript.Echo &quot;4. PHP,\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u524a\u9664&quot;\r\nDeleteFiles FtpHostName, FtpUserName, FtpPassWord, &quot;\/&quot; &amp; BackupDirName\r\n\r\nWScript.Echo &quot;\u51e6\u7406\u304c\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002&quot;\r\n\r\nPrivate Sub CreatePHPFile(ByVal PHPFilePath, _\r\n                          ByVal WPDir, _\r\n                          ByVal DBName, _\r\n                          ByVal UserName, _\r\n                          ByVal PassWord, _\r\n                          ByVal HostName)\r\n'PHP\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\r\n  Dim Code\r\n  \r\n  '------------------------------------------------------------\r\n  'PHP\u30b9\u30af\u30ea\u30d7\u30c8\u8a2d\u5b9a\r\n  '------------------------------------------------------------\r\n  Code = &quot;&lt;?php&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;    $yyyymmdd = date('Ymd');&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;    $filename_dat = $yyyymmdd . '-bk_blog_dat.tar.gz';&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;    $filename_sql = $yyyymmdd . '-bk_blog_db.sql.gz';&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;    $cmd = &quot;&quot;tar -cvzf $filename_dat --ignore-failed-read &quot; &amp; WPDir &amp; &quot;&quot;&quot;;&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;    exec($cmd, $output, $return_code);&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;    if($return_code != 0){&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;        header('HTTP', true, 500);&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;        exit();&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;    }&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;    $cmd = &quot;&quot;mysqldump &quot; &amp; DBName &amp; &quot; --user=&quot; &amp; UserName &amp; &quot; --password=&quot; &amp; PassWord &amp; &quot; --host=&quot; &amp; HostName &amp; &quot; --opt | gzip &gt; $filename_sql&quot;&quot;;&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;    exec($cmd, $output, $return_code);&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;    if($return_code != 0){&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;        header('HTTP', true, 500);&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;        exit();&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;    }&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;?&gt;&quot;\r\n  '------------------------------------------------------------\r\n  \r\n  With CreateObject(&quot;Scripting.FileSystemObject&quot;).CreateTextFile(PHPFilePath, True, False)\r\n    .Write Code\r\n    .Close\r\n  End With\r\nEnd Sub\r\n\r\nPrivate Sub UploadFile(ByVal HostName, _\r\n                       ByVal UserName, _\r\n                       ByVal PassWord, _\r\n                       ByVal DestFileDir, _\r\n                       ByVal SourFilePath)\r\n'\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u51e6\u7406\r\n  Dim TmpFolderPath\r\n  Dim ScrFilePath\r\n  Dim Code\r\n  Const ScrFileName = &quot;FtpScript.ftp&quot;\r\n  \r\n  '------------------------------------------------------------\r\n  'FTP\u30b9\u30af\u30ea\u30d7\u30c8\u8a2d\u5b9a\r\n  '------------------------------------------------------------\r\n  Code = &quot;open &quot; &amp; HostName &amp; vbCrLf\r\n  Code = Code &amp; &quot;user &quot; &amp; UserName &amp; &quot; &quot; &amp; PassWord &amp; vbCrLf\r\n  Code = Code &amp; &quot;cd &quot; &amp; DestFileDir &amp; vbCrLf\r\n  Code = Code &amp; &quot;binary&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;put &quot;&quot;&quot; &amp; SourFilePath &amp; &quot;&quot;&quot;&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;quit&quot;\r\n  '------------------------------------------------------------\r\n  \r\n  With CreateObject(&quot;Scripting.FileSystemObject&quot;)\r\n    TmpFolderPath = .GetSpecialFolder(2).Path\r\n    If Right(TmpFolderPath, 1) &lt;&gt; ChrW(92) Then TmpFolderPath = TmpFolderPath &amp; ChrW(92)\r\n    ScrFilePath = TmpFolderPath &amp; ScrFileName\r\n    With .CreateTextFile(ScrFilePath, True, False)\r\n      .Write Code\r\n      .Close\r\n    End With\r\n    CreateObject(&quot;WScript.Shell&quot;).Run &quot;ftp -n -s:&quot;&quot;&quot; &amp; ScrFilePath &amp; &quot;&quot;&quot;&quot;, 1, True '\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u5b9f\u884c(\u30a6\u30a3\u30f3\u30c9\u30a6\u8868\u793a)\r\n    .DeleteFile ScrFilePath, True '\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u524a\u9664\r\n  End With\r\nEnd Sub\r\n\r\nPrivate Sub DownloadFiles(ByVal HostName, _\r\n                          ByVal UserName, _\r\n                          ByVal PassWord, _\r\n                          ByVal DestFolderPath, _\r\n                          ByVal SourFileDir)\r\n'\u30d5\u30a1\u30a4\u30eb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u51e6\u7406\r\n  Dim TmpFolderPath\r\n  Dim ScrFilePath\r\n  Dim Code\r\n  Const ScrFileName = &quot;FtpScript.ftp&quot;\r\n  \r\n  '------------------------------------------------------------\r\n  'FTP\u30b9\u30af\u30ea\u30d7\u30c8\u8a2d\u5b9a\r\n  '------------------------------------------------------------\r\n  Code = &quot;open &quot; &amp; HostName &amp; vbCrLf\r\n  Code = Code &amp; &quot;user &quot; &amp; UserName &amp; &quot; &quot; &amp; PassWord &amp; vbCrLf\r\n  Code = Code &amp; &quot;lcd &quot;&quot;&quot; &amp; DestFolderPath &amp; &quot;&quot;&quot;&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;binary&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;mget &quot; &amp; SourFileDir &amp; &quot;\/*.gz&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;quit&quot;\r\n  '------------------------------------------------------------\r\n  \r\n  With CreateObject(&quot;Scripting.FileSystemObject&quot;)\r\n    TmpFolderPath = .GetSpecialFolder(2).Path\r\n    If Right(TmpFolderPath, 1) &lt;&gt; ChrW(92) Then TmpFolderPath = TmpFolderPath &amp; ChrW(92)\r\n    ScrFilePath = TmpFolderPath &amp; ScrFileName\r\n    With .CreateTextFile(ScrFilePath, True, False)\r\n      .Write Code\r\n      .Close\r\n    End With\r\n    CreateObject(&quot;WScript.Shell&quot;).Run &quot;ftp -i -n -s:&quot;&quot;&quot; &amp; ScrFilePath &amp; &quot;&quot;&quot;&quot;, 1, True '\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u5b9f\u884c(\u30a6\u30a3\u30f3\u30c9\u30a6\u8868\u793a)\r\n    .DeleteFile ScrFilePath, True '\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u524a\u9664\r\n  End With\r\nEnd Sub\r\n\r\nPrivate Sub DeleteFiles(ByVal HostName, _\r\n                        ByVal UserName, _\r\n                        ByVal PassWord, _\r\n                        ByVal SourFileDir)\r\n'\u30d5\u30a1\u30a4\u30eb\u524a\u9664\u51e6\u7406\r\n  Dim TmpFolderPath\r\n  Dim ScrFilePath\r\n  Dim Code\r\n  Const ScrFileName = &quot;FtpScript.ftp&quot;\r\n  \r\n  '------------------------------------------------------------\r\n  'FTP\u30b9\u30af\u30ea\u30d7\u30c8\u8a2d\u5b9a\r\n  '------------------------------------------------------------\r\n  Code = &quot;open &quot; &amp; HostName &amp; vbCrLf\r\n  Code = Code &amp; &quot;user &quot; &amp; UserName &amp; &quot; &quot; &amp; PassWord &amp; vbCrLf\r\n  Code = Code &amp; &quot;binary&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;mdelete &quot; &amp; SourFileDir &amp; &quot;\/*.gz&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;mdelete &quot; &amp; SourFileDir &amp; &quot;\/*.php&quot; &amp; vbCrLf\r\n  Code = Code &amp; &quot;quit&quot;\r\n  '------------------------------------------------------------\r\n  \r\n  With CreateObject(&quot;Scripting.FileSystemObject&quot;)\r\n    TmpFolderPath = .GetSpecialFolder(2).Path\r\n    If Right(TmpFolderPath, 1) &lt;&gt; ChrW(92) Then TmpFolderPath = TmpFolderPath &amp; ChrW(92)\r\n    ScrFilePath = TmpFolderPath &amp; ScrFileName\r\n    With .CreateTextFile(ScrFilePath, True, False)\r\n      .Write Code\r\n      .Close\r\n    End With\r\n    CreateObject(&quot;WScript.Shell&quot;).Run &quot;ftp -i -n -s:&quot;&quot;&quot; &amp; ScrFilePath &amp; &quot;&quot;&quot;&quot;, 1, True '\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u5b9f\u884c(\u30a6\u30a3\u30f3\u30c9\u30a6\u8868\u793a)\r\n    .DeleteFile ScrFilePath, True '\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u524a\u9664\r\n  End With\r\nEnd Sub<\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089\u4e0a\u8a18\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u7279\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u3082\u7121\u304f\u3001\u6307\u5b9a\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_01.png\" alt=\"WordPress_03_01\" width=\"677\" height=\"492\" class=\"alignnone size-full wp-image-3927\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_01.png 677w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_01-300x218.png 300w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/a><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_02.png\" alt=\"WordPress_03_02\" width=\"677\" height=\"492\" class=\"alignnone size-full wp-image-3928\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_02.png 677w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_02-300x218.png 300w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/a><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_03.png\" alt=\"WordPress_03_03\" width=\"490\" height=\"305\" class=\"alignnone size-full wp-image-3929\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_03.png 490w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_03-300x186.png 300w\" sizes=\"auto, (max-width: 490px) 100vw, 490px\" \/><\/a><\/p>\n<p>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u898b\u3066\u3082\u3001\u3061\u3083\u3093\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u524a\u9664\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_04.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_04.png\" alt=\"WordPress_03_04\" width=\"518\" height=\"185\" class=\"alignnone size-full wp-image-3930\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_04.png 518w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordPress_03_04-300x107.png 300w\" sizes=\"auto, (max-width: 518px) 100vw, 518px\" \/><\/a><\/p>\n<p>\u3053\u308c\u3067WordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u4f5c\u696d\u306e\u81ea\u52d5\u5316\u306f\u7d42\u4e86\u3067\u3059\u3002<br \/>\n\u5b9a\u671f\u7684\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001\u4e0a\u8a18\u30b9\u30af\u30ea\u30d7\u30c8\u3092<a href=\"http:\/\/www.atmarkit.co.jp\/ait\/articles\/1305\/31\/news049.html\" title=\"Windows TIPS\uff1a\u30bf\u30b9\u30af\u30fb\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\uff08Windows 7\uff0f8\u7de8\uff09 - \uff20IT\" target=\"_blank\">\u30bf\u30b9\u30af\u30fb\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9<\/a>\u3067\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<h4>\u3010\u7de8\u96c6\u5f8c\u8a18\u3011<\/h4>\n<p>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u51e6\u7406\u306e\u81ea\u52d5\u5316\u306b\u306f\u3001\u4f7f\u3044\u6163\u308c\u305fVBS\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u30a8\u30e9\u30fc\u51e6\u7406\u306f\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u5b9f\u7528\u7684\u304b\u3069\u3046\u304b\u306f\u5fae\u5999\u306a\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u306f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f5c\u6210\u3067\u304d\u308b\u306e\u3067\u3001\u3053\u308c\u3067\u826f\u3057\u3068\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u300cWordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u52d5\u304b\u3059\u65b9\u6cd5(1)\u300d\u3068\u300cWordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u52d5\u304b\u3059\u65b9\u6cd5(2)\u300d\u3067\u3001PHP\u3092\u5229\u7528\u3057\u3066WordPress\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u308b\u65b9\u6cd5\u3068\u3001\u53d6\u3063 [&hellip;]","protected":false},"author":1,"featured_media":7132,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6,124],"tags":[],"class_list":["post-3926","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vbs","category-wordpress-2"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-VBScript.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-11k","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3926"}],"version-history":[{"count":2,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3926\/revisions"}],"predecessor-version":[{"id":3932,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3926\/revisions\/3932"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7132"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}