20
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Linuxでexeをつくるのが簡単だった。

Last updated at Posted at 2014-05-14
mingw32をインストール
$ sudo apt-get install -y mingw32
exe作成
$ i586-mingw32msvc-gcc a.c

これでa.exeが作成される。
ソースはsjisで書くこと。

外部exeの実行

今まで.batや.vbsで頑張ってきたけど、exe化するとwebで配布する際都合が良い。
.batや.vbsだとそのままテキストとして表示されたりしてた。

a.c
#include <stdio.h>
#include <stdlib.h>

int main(void)
{
    system("UserAccountControlSettings.exe");
    return 0;
}

Win32 APIも使えます

20
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?