[英]How to stop/wait a Windows batch till powerpoint file loads in Browser
我有一個Windows Batch文件,該文件使用直接鏈接在瀏覽器中打開PowerPoint文件,我想捕獲文件加載時間。
我有的腳本是
@echo off
rem Get start time:
for /F "tokens=1-4 delims=:.," %%a in ("%time%") do (
set /A "start=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
)
start chrome.exe https://filelink.com
rem Get end time:
for /F "tokens=1-4 delims=:.," %%a in ("%time%") do (
set /A "end=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
)
從瀏覽器實際加載文件需要時間,但是我無法捕獲實際的文件,如何等待文件完全加載然后運行end time命令!
謝謝
代替
start chrome.exe https://filelink.com
我會嘗試像
powershell.exe (new-object System.Net.WebClient).DownloadFile('https://filelink.com', 'output.log')
或下載Windows版的“ wget”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.