|
Answer» Hey all, I'm WRITING a small script file that will install a number of Windows XP hotfixes using the following SYNTAX in a batch file:
Code: [Select]FOR %%X in (*.exe) DO %%X /quiet /norestart I also want to be able to display the number of files processed once the script has run its course. Can anyone help me out with that?You can either write logic and count them yourself or let the machine do all the work:
Code: [Select]@echo off FOR %%X in (*.exe) DO %%X /quiet /norestart for /f "tokens=1-2*" %%x in ('dir *.exe ^| FIND /i "file(s)"') do echo Total Files Processed: %%x
Hope this helps. Sidewinder, Your tip worked GREAT. Thanks for the help. Can you tell me what's going on in the line of code you OFFERED. Thanks again.
|