I'm new to write batch file. I want to write a batch file, such that I can test out the speed for fully opening a large power point file from network share drive.The powerpoint file is stored at server, and usually will take minutes to fully open up due to slow network line and heavy graphic oriented.
But I have no idea how to identify if the powerpoint file is completely opened after the start command is run. Anyone can help? Thank you.
Below is some of my code.
@echo off
set logfile=C:\logs\powerpoint.log
set destination=C:\logs
:loop
echo Open Powerpoint file test STARTING at %date% %time% >> %logfile%
start S:\Presentation1.ppt
echo Open Powerpoint file test ENDING at %date% %time% >> %logfile%
echo. >> %logfile%
echo Waiting for 1 minute to close the Powerpoint program
timeout /t 60 /NOBREAK >null
taskkill /F /IM wpp.exe /T
echo Waiting for 1 hour to restart...
timeout /t 10 /NOBREAK >null
goto loop
Aucun commentaire:
Enregistrer un commentaire