質問するログイン新規登録

回答編集履歴

2

誤り訂正

2018/11/20 13:40

投稿

otn
otn

スコア86432

answer CHANGED
@@ -14,4 +14,4 @@
14
14
  goto :EOF
15
15
  ```
16
16
  #追記
17
- Windows10だとログの形式が異なるので、微修正。
17
+ wget.exeの種類により、ログの形式が異なるので、微修正。

1

Windows10対応

2018/11/20 13:40

投稿

otn
otn

スコア86432

answer CHANGED
@@ -8,8 +8,10 @@
8
8
 
9
9
  :sub
10
10
  wget -O nul -a wget.log -t 3 -T 20 %1
11
- for /f "tokens=3" %%A in ('findstr /b Connecting wget.log') do set HOST=%%A
11
+ for /f "tokens=3 delims=| " %%A in ('findstr /b Connecting wget.log') do set HOST=%%A
12
12
  for /f "tokens=*" %%A in ('findstr saved wget.log') do echo %HOST% %%A >> result.log
13
13
  del wget.log
14
14
  goto :EOF
15
- ```
15
+ ```
16
+ #追記
17
+ Windows10だとログの形式が異なるので、微修正。