HSPポータル
サイトマップ お問い合わせ


HSPTV!掲示板


未解決 解決 停止 削除要請

2020
0430
ゆっくりフラン_ch他の EXE ファイルを実行したいのですがどうしたら実行できますか2未解決


ゆっくりフラン_ch

リンク

2020/4/30(Thu) 11:34:11|NO.90242

他の EXE ファイルを実行したいのですがどうしたら実行できますか



この記事に返信する


こいる

リンク

2020/4/30(Thu) 12:47:21|NO.90243

exec命令を使います。

// メモ帳を起動する exec "notepad.exe"



ゆうやん

リンク

2020/4/30(Thu) 20:24:37|NO.90247

ほかにもAPIのShellExecute関数を使う方法もあります。

#uselib "shell32.dll" #func ShellExecute "ShellExecuteA" int,sptr,sptr,sptr,sptr,int #define SW_SHOWNORMAL $0001 #define NULL 0 dialog "txt",16,"" if stat==1 :ShellExecute hwnd,"open",dir_sys+"\\notepad.exe",refstr,NULL,SW_SHOWNORMAL end
ShellExecute関数についてはこちらを参照
http://tokovalue.jp/function/ShellExecute.htm



ONION software Copyright 1997-2023(c) All rights reserved.