回答編集履歴

2

追記

2018/05/19 12:45

投稿

LouiS0616
LouiS0616

スコア35660

test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- **sample.bat**
5
+ **C:\Script\sample.bat**
6
6
 
7
7
  ```bat
8
8
 

1

追記

2018/05/19 12:45

投稿

LouiS0616
LouiS0616

スコア35660

test CHANGED
@@ -1 +1,17 @@
1
1
  `python sample.py`を実行するためだけのバッチファイルを置かれてはどうでしょう。
2
+
3
+
4
+
5
+ **sample.bat**
6
+
7
+ ```bat
8
+
9
+ @echo off
10
+
11
+ python %~dp0/sample.py
12
+
13
+ ```
14
+
15
+
16
+
17
+ これなら、sample.batと打ち込むだけで実行できます。