テスト
1デフォルトの名無しさん
2020/06/10(水) 15:44:50.43ID:mTSVbvel テスト
2024/04/14(日) 11:26:35.91ID:A6nc8mUa
「@if …」から「//end」の範囲を CompileUpdateNewPostFtd.bat として保存
@if (0)==(0) echo off
set jsc=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\jsc.exe
"%jsc%" /nologo /debug+ /fast- /t:winexe /out:"%~dp0UpdateNewPostFtd.exe" "%~f0"
exit /b %ERRORLEVEL%
@end
import Microsoft.Win32;
import System;
import System.IO;
var arguments: String[] = Environment.GetCommandLineArgs();
if (arguments.Length == 1)
Environment.Exit(0);
const live5chRegistoryKey: String
= "HKEY_CURRENT_USER\\Software\\VB and VBA Program Settings\\Live2ch\\";
var live5chPath: String = Registry.GetValue(live5chRegistoryKey + "Path",
"Path", Environment.CurrentDirectory + "/live2ch.exe");
var live5chDirectory: String = Path.GetDirectoryName(live5chPath);
var ftdPostFile = live5chDirectory + "\\newpost.ftd";
var maxPost: int = Int32.Parse(Registry.GetValue(
live5chRegistoryKey + "Setting",
"FtdMaxPost", Environment.CurrentDirectory + "\\live2ch.exe"));
/*
@if (0)==(0) echo off
set jsc=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\jsc.exe
"%jsc%" /nologo /debug+ /fast- /t:winexe /out:"%~dp0UpdateNewPostFtd.exe" "%~f0"
exit /b %ERRORLEVEL%
@end
import Microsoft.Win32;
import System;
import System.IO;
var arguments: String[] = Environment.GetCommandLineArgs();
if (arguments.Length == 1)
Environment.Exit(0);
const live5chRegistoryKey: String
= "HKEY_CURRENT_USER\\Software\\VB and VBA Program Settings\\Live2ch\\";
var live5chPath: String = Registry.GetValue(live5chRegistoryKey + "Path",
"Path", Environment.CurrentDirectory + "/live2ch.exe");
var live5chDirectory: String = Path.GetDirectoryName(live5chPath);
var ftdPostFile = live5chDirectory + "\\newpost.ftd";
var maxPost: int = Int32.Parse(Registry.GetValue(
live5chRegistoryKey + "Setting",
"FtdMaxPost", Environment.CurrentDirectory + "\\live2ch.exe"));
/*
2024/04/14(日) 11:27:31.43ID:A6nc8mUa
*/
var arg: String = arguments[1];
var url: String;
if (/^https?:(\/\/.+\/)/.test(arg))
url = "http:" + RegExp.$1;
else
Environment.Exit(1);
var postUrl: Array = [url];
var sr : StreamReader = new StreamReader(ftdPostFile);
while (! sr.EndOfStream) {
var u: String = sr.ReadLine();
if (u != url)
postUrl.push(u);
if (postUrl.Length == maxPost)
break;
}
sr.Close();
var sw : StreamWriter = new StreamWriter(ftdPostFile);
for (var i = 0; i < postUrl.length; i++)
sw.WriteLine(postUrl[i]);
sw.Close();
//end
var arg: String = arguments[1];
var url: String;
if (/^https?:(\/\/.+\/)/.test(arg))
url = "http:" + RegExp.$1;
else
Environment.Exit(1);
var postUrl: Array = [url];
var sr : StreamReader = new StreamReader(ftdPostFile);
while (! sr.EndOfStream) {
var u: String = sr.ReadLine();
if (u != url)
postUrl.push(u);
if (postUrl.Length == maxPost)
break;
}
sr.Close();
var sw : StreamWriter = new StreamWriter(ftdPostFile);
for (var i = 0; i < postUrl.length; i++)
sw.WriteLine(postUrl[i]);
sw.Close();
//end
レスを投稿する
ニュース
- 生クリームだけの真っ白なクリスマスケーキ 大手メーカーが販売、その理由は…フルーツなしで価格は半額以下に [おっさん友の会★]
- 【山上裁判】安倍氏が狙わた理由 旧統一教会の関係者が「安倍氏は『われわれの味方』」と宣伝していた [1ゲットロボ★]
- 【文春】元TOKIO・国分太一(51)「女性スタッフ2名への“わいせつ事案”」日テレ事情聴取の全貌が分かった! ★2 [Ailuropoda melanoleuca★]
- 【文春】スクープ撮! 超人気ゴルファー・都玲華(21) “30歳上”石井忍コーチ(51)と路上レッスン禁断愛 [冬月記者★]
- ラサール石井氏「こういう空気が戦前の空気」と警鐘「すでに来てしまっている」「大政翼賛会も始まっています」 [少考さん★]
- 「地上波で見たいね」…大谷翔平「出場表明」WBC…ネットフリックス「独占放映」に「モーニングショー」浜田敬子氏が願い [muffin★]
- 【悲報】自民党、通行人に叩かれるwwwwwwwwwwwwwww [834922174]
- 「ウソだったのか」ネット大混乱 議員の歳費5万円アップ「凍結→成立」報道に…「えっ?」「どうなってんだ」「ビックリ😲」 [861717324]
- 【悲報】主食の米すら高くて食えなくなった日本人「中国と戦争するぞ!」 [616817505]
- ひるおび「国連の常任理事国は中華民国。中華人民共和国は中華民国を正式に引き継いでない」高市 [931948549]
- ネトウヨ「なんでハラール食品が店に置いてあるの? これが奴らの侵略なんだよ?不買運動してやる」 [165981677]
- 【速報】トランプ「高市さんと素晴らしい会談」中国逝くwwwwwwwwwww [308389511]
