{"id":5406,"date":"2016-05-10T10:53:38","date_gmt":"2016-05-10T01:53:38","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=5406"},"modified":"2016-05-10T10:53:38","modified_gmt":"2016-05-10T01:53:38","slug":"fsoattributes","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/fsoattributes\/","title":{"rendered":"FileSystemObject\uff1a\u30d5\u30a1\u30a4\u30eb\u30fb\u30d5\u30a9\u30eb\u30c0\u306e\u5c5e\u6027\u3092\u53d6\u5f97\u307e\u305f\u306f\u8a2d\u5b9a\uff08Attributes \u30d7\u30ed\u30d1\u30c6\u30a3\uff09"},"content":{"rendered":"<h2>\u30d5\u30a1\u30a4\u30eb\u30fb\u30d5\u30a9\u30eb\u30c0\u306e\u5c5e\u6027\u3092\u53d6\u5f97\u307e\u305f\u306f\u8a2d\u5b9a\uff08Attributes \u30d7\u30ed\u30d1\u30c6\u30a3\uff09<\/h2>\n<div class=\"m30-l\">\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u5c5e\u6027\u3092\u53d6\u5f97\u304a\u3088\u3073\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001<strong>File \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong> \u306e <strong>Attributes \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u30d5\u30a9\u30eb\u30c0\u306e\u5c5e\u6027\u3092\u53d6\u5f97\u304a\u3088\u3073\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001<strong>Folder \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong> \u306e <strong>Attributes \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>Attributes<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u8a2d\u5b9a\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>Attributes<\/strong> = <em>newattributes<\/em><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<span class=\"red\"><strong>File \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span> \u307e\u305f\u306f\u3001<span class=\"red\"><strong>Folder \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u623b\u308a\u5024&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;FileAttributes \u5217\u6319\u578b\u306e\u5b9a\u6570\u306e\u5024<\/li>\n<li>newattributes&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;FileAttribute \u5217\u6319\u578b\u306e\u5b9a\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<table>\n<tr>\n<td align = \"center\" width=\"200\" bgcolor=\"#ffffccc\"><strong>\u5b9a\u6570<\/strong><\/td>\n<td align = \"center\" width=\"50\" bgcolor=\"#ffffccc\"><strong>\u5024<\/strong><\/td>\n<td align = \"center\" width=\"400\" bgcolor=\"#ffffccc\"><strong>\u5185\u5bb9<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"200\">Normal<\/td>\n<td width=\"50\" align = \"center\">0<\/td>\n<td width=\"400\">\u6a19\u6e96\uff08\u5c5e\u6027\u306f\u8a2d\u5b9a\u3055\u308c\u307e\u305b\u3093\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">ReadOnly<\/td>\n<td width=\"50\" align = \"center\">1<\/td>\n<td width=\"400\">\u8aad\u307f\u53d6\u308a\u5c02\u7528\uff08\u53d6\u5f97\u8a2d\u5b9a\u53ef\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">Hidden<\/td>\n<td width=\"50\" align = \"center\">2<\/td>\n<td width=\"400\">\u96a0\u3057\u30d5\u30a1\u30a4\u30eb\u30fb\u96a0\u3057\u30d5\u30a9\u30eb\u30c0\uff08\u53d6\u5f97\u8a2d\u5b9a\u53ef\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">System<\/td>\n<td width=\"50\" align = \"center\">4<\/td>\n<td width=\"400\">\u30b7\u30b9\u30c6\u30e0\u30d5\u30a1\u30a4\u30eb\uff08\u53d6\u5f97\u8a2d\u5b9a\u53ef\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">Volume<\/td>\n<td width=\"50\" align = \"center\">8<\/td>\n<td width=\"400\">\u30c7\u30a3\u30b9\u30af\u30c9\u30e9\u30a4\u30d6\u30dc\u30ea\u30e5\u30fc\u30e0\u30e9\u30d9\u30eb\uff08\u53d6\u5f97\u306e\u307f\u53ef\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">Directory<\/td>\n<td width=\"50\" align = \"center\">16<\/td>\n<td width=\"400\">\u30d5\u30a9\u30eb\u30c0\u307e\u305f\u306f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff08\u53d6\u5f97\u306e\u307f\u53ef\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">Archive<\/td>\n<td width=\"50\" align = \"center\">32<\/td>\n<td width=\"400\">\u30a2\u30fc\u30ab\u30a4\u30d6\uff08\u53d6\u5f97\u8a2d\u5b9a\u53ef\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">Alias<\/td>\n<td width=\"50\" align = \"center\">64<\/td>\n<td width=\"400\">\u30ea\u30f3\u30af\u307e\u305f\u306f\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\uff08\u53d6\u5f97\u306e\u307f\u53ef\uff09<\/td>\n<\/tr>\n<tr>\n<td width=\"200\">Compressed<\/td>\n<td width=\"50\" align = \"center\">128<\/td>\n<td width=\"400\">\u5727\u7e2e\u30d5\u30a1\u30a4\u30eb\uff08\u53d6\u5f97\u306e\u307f\u53ef\uff09<\/td>\n<\/tr>\n<\/table>\n<p>\n      <\/li>\n<\/ul><\/div>\n<br \/>\n<p class=\"caution4\">File \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u95a2\u3057\u3066\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/fsogetfile\/\">FileSystemObject\uff1aFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\uff08GetFile\uff09<\/a> \u3001Folder \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u95a2\u3057\u3066\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/fsofolderobject\/\">FileSystemObject\uff1aFolder \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53d6\u5f97<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"al-r\">\n<\/div>\n<br \/><br \/>\n<h2>Attributes \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"Attributes \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Attributes()\r\n\r\n    Dim fso As New FileSystemObject\r\n    Dim myFolder As Folder\r\n    Dim mySubFolders As Folders\r\n    Dim str As String\r\n\r\n    Set mySubFolders = fso.GetFolder(\"C:\\Documents\\data3\\\").SubFolders\r\n\r\n    '\u30d5\u30a9\u30eb\u30c0\u540d\uff08\u5c5e\u6027[\u5024]\uff09\r\n    For Each myFolder In mySubFolders\r\n        str = str & myFolder.Name & \"(\" & myFolder.Attributes & \")\" & vbCrLf\r\n    Next\r\n\r\n    MsgBox str\r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/05\/fso_attributes01.jpg?ssl=1\" rel=\"lightbox[5406]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/05\/fso_attributes01.jpg?resize=168%2C170&#038;ssl=1\" alt=\"FSO Attributes \u30d7\u30ed\u30d1\u30c6\u30a3\" width=\"168\" height=\"170\" class=\"alignnone size-full wp-image-5407\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/05\/fso_attributes01.jpg?w=168&amp;ssl=1 168w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/05\/fso_attributes01.jpg?resize=100%2C100&amp;ssl=1 100w\" sizes=\"(max-width: 168px) 100vw, 168px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>\u30d5\u30a1\u30a4\u30eb\u30fb\u30d5\u30a9\u30eb\u30c0\u306e\u5c5e\u6027\u3092\u53d6\u5f97\u307e\u305f\u306f\u8a2d\u5b9a\uff08Attributes \u30d7\u30ed\u30d1\u30c6\u30a3\uff09 \u30d5 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5407,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[836],"tags":[874,721,693,871,722,872,834,63,38],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2016\/05\/fso_attributes01.jpg?fit=168%2C170&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-1pc","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5406"}],"collection":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/comments?post=5406"}],"version-history":[{"count":4,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5406\/revisions"}],"predecessor-version":[{"id":5461,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/5406\/revisions\/5461"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/5407"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=5406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=5406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=5406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}