掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
他のexeをよびだすには?? (ID:34800)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
早速のお返事ありがとうございます。 参考URLから、 procedure TForm1.Button1Click(Sender: TObject); const strExeName = 'c:\windows\Notepad.exe'; strDocName = 'd:\borland\Delphi 3\Readme.txt'; begin if RadioButton1.Checked then begin { メモ帳を起動 } ShellExecute(Handle,'open',PChar(strExeName),'', PChar(ExtractFilePath(Application.Exename)),SW_SHOWDEFAULT); end else begin { Readmeを関連付けを元に起動 } ShellExecute(Handle,'open',PChar(strDocName),'', PChar(ExtractFilePath(Application.Exename)),SW_SHOWDEFAULT); end; end; とありますが、 >> strDocName = 'd:\borland\Delphi 3\Readme.txt'; は何の指定でしょうか。 RadioButtonの部分はひつようなのですか??
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.