--- /dev/null
+CheckFileNameLength.suo\r
--- /dev/null
+\r
+Microsoft Visual Studio Solution File, Format Version 11.00\r
+# Visual C# Express 2010\r
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CheckFileNameLength", "CheckFileNameLength\CheckFileNameLength.csproj", "{EA54B656-A191-424C-8511-C9FB908AFD06}"\r
+EndProject\r
+Global\r
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
+ Debug|x86 = Debug|x86\r
+ Release|x86 = Release|x86\r
+ EndGlobalSection\r
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
+ {EA54B656-A191-424C-8511-C9FB908AFD06}.Debug|x86.ActiveCfg = Debug|x86\r
+ {EA54B656-A191-424C-8511-C9FB908AFD06}.Debug|x86.Build.0 = Debug|x86\r
+ {EA54B656-A191-424C-8511-C9FB908AFD06}.Release|x86.ActiveCfg = Release|x86\r
+ {EA54B656-A191-424C-8511-C9FB908AFD06}.Release|x86.Build.0 = Release|x86\r
+ EndGlobalSection\r
+ GlobalSection(SolutionProperties) = preSolution\r
+ HideSolutionNode = FALSE\r
+ EndGlobalSection\r
+EndGlobal\r
--- /dev/null
+bin\r
+obj\r
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+ <PropertyGroup>\r
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>\r
+ <ProductVersion>8.0.30703</ProductVersion>\r
+ <SchemaVersion>2.0</SchemaVersion>\r
+ <ProjectGuid>{EA54B656-A191-424C-8511-C9FB908AFD06}</ProjectGuid>\r
+ <OutputType>Exe</OutputType>\r
+ <AppDesignerFolder>Properties</AppDesignerFolder>\r
+ <RootNamespace>CheckFileNameLength</RootNamespace>\r
+ <AssemblyName>CheckFileNameLength</AssemblyName>\r
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>\r
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>\r
+ <FileAlignment>512</FileAlignment>\r
+ </PropertyGroup>\r
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">\r
+ <PlatformTarget>x86</PlatformTarget>\r
+ <DebugSymbols>true</DebugSymbols>\r
+ <DebugType>full</DebugType>\r
+ <Optimize>false</Optimize>\r
+ <OutputPath>bin\Debug\</OutputPath>\r
+ <DefineConstants>DEBUG;TRACE</DefineConstants>\r
+ <ErrorReport>prompt</ErrorReport>\r
+ <WarningLevel>4</WarningLevel>\r
+ </PropertyGroup>\r
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">\r
+ <PlatformTarget>x86</PlatformTarget>\r
+ <DebugType>pdbonly</DebugType>\r
+ <Optimize>true</Optimize>\r
+ <OutputPath>bin\Release\</OutputPath>\r
+ <DefineConstants>TRACE</DefineConstants>\r
+ <ErrorReport>prompt</ErrorReport>\r
+ <WarningLevel>4</WarningLevel>\r
+ </PropertyGroup>\r
+ <ItemGroup>\r
+ <Reference Include="System" />\r
+ <Reference Include="System.Core" />\r
+ <Reference Include="System.Xml.Linq" />\r
+ <Reference Include="System.Data.DataSetExtensions" />\r
+ <Reference Include="Microsoft.CSharp" />\r
+ <Reference Include="System.Data" />\r
+ <Reference Include="System.Xml" />\r
+ </ItemGroup>\r
+ <ItemGroup>\r
+ <Compile Include="Program.cs" />\r
+ <Compile Include="Properties\AssemblyInfo.cs" />\r
+ </ItemGroup>\r
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it. \r
+ Other similar extension points exist, see Microsoft.Common.targets.\r
+ <Target Name="BeforeBuild">\r
+ </Target>\r
+ <Target Name="AfterBuild">\r
+ </Target>\r
+ -->\r
+</Project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+</Project>
\ No newline at end of file
--- /dev/null
+using System;\r
+using System.Collections.Generic;\r
+using System.IO;\r
+using System.Text;\r
+\r
+namespace CheckFileNameLength\r
+{\r
+ /// <summary>\r
+ /// CheckFileNameLength.exe vx.x.x.x\r
+ /// \r
+ /// アストロファイルマネージャ v2.5.2(Androidアプリ)が認識するファイル名の長さに収まっているかチェックします。\r
+ /// 半角だと230桁 + 4文字(.txt)、全角だと171桁 + 4文字(.txt)まで認識します。\r
+ /// このアプリでは、ファイル名が176桁未満であることをチェックし、176桁以上であるファイル名を列挙します。\r
+ /// \r
+ /// Usage: CheckFileNameLength.exe [-help] [-nopause] dir-path\r
+ /// \r
+ /// -help ヘルプを表示します。\r
+ /// -nopause 処理終了後、キー入力を待たずに終了します。\r
+ /// dir-path チェックを行うディレクトリのパスを指定します。\r
+ /// </summary>\r
+ class Program\r
+ {\r
+ private static bool _isHelp = false;\r
+ private static bool _isNoPause = false;\r
+ private static string _dirPath = null;\r
+\r
+ static void Main(string[] args)\r
+ {\r
+ // コマンドライン引数を解析。\r
+\r
+ foreach (string arg in args)\r
+ {\r
+ if (arg == "-help")\r
+ {\r
+ _isHelp = true;\r
+ }\r
+ else if (arg == "-nopause")\r
+ {\r
+ _isNoPause = true;\r
+ }\r
+ else\r
+ {\r
+ _dirPath = arg;\r
+ }\r
+ }\r
+\r
+ // ヘルプを表示。\r
+\r
+ if (_isHelp || args.Length == 0)\r
+ {\r
+ System.Diagnostics.FileVersionInfo vInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location);\r
+\r
+ Console.WriteLine("CheckFileNameLength.exe version " + vInfo.FileVersion);\r
+ Console.WriteLine("");\r
+ Console.WriteLine("アストロファイルマネージャ v2.5.2(Androidアプリ)が認識するファイル名の長さに");\r
+ Console.WriteLine("収まっているかチェックします。");\r
+ Console.WriteLine("半角だと230桁 + 4文字(.txt)、全角だと171桁 + 4文字(.txt)まで認識します。");\r
+ Console.WriteLine("このアプリでは、ファイル名が176桁未満であることをチェックし、176桁以上である");\r
+ Console.WriteLine("ファイル名を列挙します。");\r
+ Console.WriteLine("");\r
+ Console.WriteLine("Usage: CheckFileNameLength.exe [-help] [-nopause] dir-path");\r
+ Console.WriteLine("");\r
+ Console.WriteLine(" -help ヘルプを表示します。");\r
+ Console.WriteLine(" -nopause 処理終了後、キー入力を待たずに終了します。");\r
+ Console.WriteLine(" dir-path チェックを行うディレクトリのパスを指定します。");\r
+\r
+ if (!_isNoPause)\r
+ {\r
+ Console.WriteLine();\r
+ Console.WriteLine("[Press Any Key]");\r
+\r
+ Console.ReadLine();\r
+ }\r
+\r
+ return;\r
+ }\r
+\r
+ // チェック。\r
+\r
+ Encoding enc = Encoding.Default;\r
+\r
+ DirectoryInfo targetDir = new DirectoryInfo(_dirPath);\r
+\r
+ foreach (FileInfo file in targetDir.GetFiles())\r
+ {\r
+ int byteCount = enc.GetByteCount(file.Name);\r
+ if (byteCount >= 176)\r
+ {\r
+ Console.WriteLine(file.Name + "[" + byteCount + "桁]");\r
+ }\r
+ }\r
+\r
+ if (!_isNoPause)\r
+ {\r
+ Console.WriteLine();\r
+ Console.WriteLine("[Press Any Key]");\r
+\r
+ Console.ReadLine();\r
+ }\r
+ }\r
+ }\r
+}\r
--- /dev/null
+using System.Reflection;\r
+using System.Runtime.CompilerServices;\r
+using System.Runtime.InteropServices;\r
+\r
+// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。\r
+// アセンブリに関連付けられている情報を変更するには、\r
+// これらの属性値を変更してください。\r
+[assembly: AssemblyTitle("CheckFileNameLength")]\r
+[assembly: AssemblyDescription("")]\r
+[assembly: AssemblyConfiguration("")]\r
+[assembly: AssemblyCompany("")]\r
+[assembly: AssemblyProduct("CheckFileNameLength")]\r
+[assembly: AssemblyCopyright("Copyright (C) 2010 u6k.yu1@gmail.com, All Rights Reserved.")]\r
+[assembly: AssemblyTrademark("")]\r
+[assembly: AssemblyCulture("")]\r
+\r
+// ComVisible を false に設定すると、その型はこのアセンブリ内で COM コンポーネントから \r
+// 参照不可能になります。COM からこのアセンブリ内の型にアクセスする場合は、\r
+// その型の ComVisible 属性を true に設定してください。\r
+[assembly: ComVisible(false)]\r
+\r
+// 次の GUID は、このプロジェクトが COM に公開される場合の、typelib の ID です\r
+[assembly: Guid("308451d2-43d4-408d-8fb8-52c1714671f3")]\r
+\r
+// アセンブリのバージョン情報は、以下の 4 つの値で構成されています:\r
+//\r
+// Major Version\r
+// Minor Version \r
+// Build Number\r
+// Revision\r
+//\r
+// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を \r
+// 既定値にすることができます:\r
+// [assembly: AssemblyVersion("1.0.*")]\r
+[assembly: AssemblyVersion("0.1.0.0")]\r
+[assembly: AssemblyFileVersion("0.1.0.0")]\r