数行の単純なコード。
ナンセンスな話をやめる
プライベート静的文字列svnUpdateCommand = "TortoiseProc.exe / command:update / path:{0} / notempfile / closeonend:4"; プライベート静的文字列svnCommitCommand = "TortoiseProc.exe /コマンド:commit /パス:{0} / notempfile / closeonend :4 "; [MenuItem(" Assets / SVN / bulk update selected folder "、false、0)] public static void UpdateSelectFloder() { CreatSnvBacthCommand(true); } [MenuItem(" Assets / SVN / bulk upload selected Folder "、false、0)] public static void CommitSelectFloder() { CreatSnvBacthCommand(false); } private static void CreatSnvBacthCommand(bool isUpdate) { string [] selectIds = Selection.assetGUIDs; 文字列パス= string.Empty; for(int i = 0; i <selectIds.Length; i ++) { path = path + AssetDatabase.GUIDToAssetPath(selectIds [i])+ "*"; } プロセスmyPro = new Process(); myPro.StartInfo.FileName = "TortoiseProc.exe"; string command = ""; if(isUpdate) { command = string.Format(svnUpdateCommand、path); //更新 コマンド } else { command = string.Format(svnCommitCommand、path); //上传命令 } myPro.StartInfo.Arguments + =コマンド; myPro.Start(); }