Тема: различие команды for в win 7 и в win 10
Подскажите почему может по разному выполняется команда for.
Команда:
for /f "Usebackq delims=" %a in (`powershell "$webClient = New-Object -TypeName System.Net.WebClient; $webClient.DownloadString('https://api.nicehash.com/api?method=stats.provider.workers&addr=1JqFnUR3nDFCbNUmWiQ4jX6HRugGzX55L2')"`) do echo %a
Результат на win 10:
C:\mining\NVI_tunning>for /F "Usebackq delims=" %a in (`powershell "$webClient = New-Object -TypeName System.Net.WebClient; $webClient.DownloadString('https://api.nicehash.com/api?method=stats.provider.workers&addr=1JqFnUR3nDFCbNUmWiQ4jX6HRugGzX55L2')"`) do echo %a
C:\mining\NVI_tunning>echo {"result":{"addr":"1JqFnUR3nDFCbNUmWiQ4jX6HRugGzX55L2","workers":[["worker1",{"a":"1.43"},195,1,"0.01",0,29],["worker1",{"a":"0.86"},762,1,"0.01",0,29],["worker1",{"a":"1.43"},197,1,"0.01",0,29]],"algo":-1},"method":"stats.provider.workers"}
{"result":{"addr":"1JqFnUR3nDFCbNUmWiQ4jX6HRugGzX55L2","workers":[["worker1",{"a":"1.43"},195,1,"0.01",0,29],["worker1",{"a":"0.86"},762,1,"0.01",0,29],["worker1",{"a":"1.43"},197,1,"0.01",0,29]],"algo":-1},"method":"stats.provider.workers"}
Результат на Win 7:
C:\mining\NVI_tunning>for /F "Usebackq delims=" %a in (`powershell "$webClient = New-Object -TypeName System.Net.WebClient; $webClient.DownloadString('https://api.nicehash.com/api?method=stats.provider.workers&addr=1JqFnUR3nDFCbNUmWiQ4jX6HRugGzX55L2')"`) do echo %a
C:\mining\NVI_tunning>echo {"result":{"addr":"1JqFnUR3nDFCbNUmWiQ4jX6HRugGzX55L2","workers":[["worker1",{"
{"result":{"addr":"1JqFnUR3nDFCbNUmWiQ4jX6HRugGzX55L2","workers":[["worker1",{"
C:\mining\NVI_tunning>echo a":"2.02"},766,1,"0.01",0,29],["worker1",{"a":"1.44"},201,1,"0.01",0,29],["work
a":"2.02"},766,1,"0.01",0,29],["worker1",{"a":"1.44"},201,1,"0.01",0,29],["work
C:\mining\NVI_tunning>echo er1",{"a":"1.58"},199,1,"0.01",0,29]],"algo":-1},"method":"stats.provider.worke
er1",{"a":"1.58"},199,1,"0.01",0,29]],"algo":-1},"method":"stats.provider.worke
C:\mining\NVI_tunning>echo rs"}
rs"}