2022-03-21から1日間の記事一覧

VBScriptで、32 ビットまたは 64 ビットの Windows OS を実行しているかどうかを判断

strOSArch = GetObject("winmgmts:root\cimv2:Win32_OperatingSystem=@").OSArchitecture If Instr(strOSArch,"64") <> 0 Then 'OSが64ビット MsgBox "64" Else 'OSが32ビット MsgBox "32" End if以下は完璧じゃないっぽい Dim WshShell Dim WshProcEnv Dim …

inno setup の インストーラーの64bit/32bit指定方法

1)x64対応アプリ、インストーラをx64環境で動かす。 ArchitecturesInstallIn64BitMode=x64 ArchitecturesAllowed=x642)x86対応アプリ、インストーラをx86環境で動かす。 ;ArchitecturesInstallIn64BitModeは記述しない ArchitecturesAllowed=x863)x86対応ア…

BATファイルでファイルが存在している場合にのみコマンドを実行する

if exist [ファイル名] [コマンド] if exist "file.txt" echo ファイルが存在しています。 ネタ元 jj-blues.com

AfxMessageBoxのアイコン指定

Infomationにするなら AfxMessageBox("「MB_ICONINFORMATION」を指定",MB_ICONINFORMATION); ネタ元 www.dinop.com

バッチファイルで終了

exit /b ネタ元 www.javadrive.jp