0
0

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 3 years have passed since last update.

[メモ]簡単に自分のコマンドを作る。

Last updated at Posted at 2021-08-23

1.コマンド用のフォルダを作成する

1.E:\command\ を作成する。

2.コマンドを書く

1.E:\command\ <コマンド> .bat を作成する。
2.E:\command\ <コマンド> .bat に以下のコードを書き込む。

@ECHO OFF
TITLE Hello
ECHO Hello, World!

3.環境変数を設定する

1.設定 > システム > 詳細情報 > システムの詳細設定 > 環境変数
2.ユーザー環境変数 > Path > 編集 > 新規 > E:\command\ を入力する > OK

4.テスト

1.コマンドプロンプトを起動する。
2. <コマンド> を入力して Enter キーを押す。
タイトルなし.png
これで成功した。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?