2
1

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.

powershellでワンライナーのコマンドを書く方法

Posted at

環境

Windows 10

方法

powershellではコマンド間の区切り文字として;を使うだけでワンライナーが書けます。

例えば、「カレントディレクトリから親ディレクトリに移動して、ディレクトリ内のフォルダ/ファイルを表示する」には、下記のコマンドを実行します。

cd ../ ; dir ;

あとがき

私は、ちょっとした時間のかかる処理などに対して、作業予約をする感覚でコマンドを複数まとめて入力して使ったりしています。

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?