I think I understand....
In the "for %%M in (WHATEVER) do SOMETHING" command, when WHATEVER contains a wildcard, then %%M = the filespec for every file that matches the wildcard, and it also executes the "do" command for each file?
Does that sound right?
| Adam Peart <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 10/17/2005 10:34 PM
|
To: [email protected] cc: Subject: Re: [Unattended] Adobe reader script |
[EMAIL PROTECTED] wrote:
> Can anyone explain to me what this line in the adobe-reader.bat file
> is trying to do? I can't find any reference to what %m or %%m referrs
> to, and that script will randomly fail on me.
>
> todo.pl "for %%m in (\"%TEMP%\adberdr\Adobe Reader 7.0*.msi\") do
> msiexec /qb /l* %SystemDrive%\netinst\logs\adobe-reader.txt /i \"%%m\"
> REBOOT=ReallySuppress"
%%m is a variable. %% is used in a batch file, %m is used at the
command line. What the command means is it tries to install any msi
files that start with that file name in that directory, but without
hardcoding the filename into the batch file.
Theoretically, if it fails it's because the msi file isn't be extracted
succesfully, but since I don't use Acrobat 7 I can't say for sure.
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info
NOTICE: The information contained in this email message, and any attachments accompanying this transmission, may be legally privileged and/or confidential and protected health information. This information is intended only for the use of the individual(s) and/or entity identified above. The authorized recipient of this information is prohibited from disclosing this information to any other party unless required to do so by law or regulation and is required to protect the information after its stated need has been fulfilled. If you are not the intended recipient, or an employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, printing, copying, forwarding, or distributing of this information is strictly prohibited. If you have received this communication in error, please notify the sender immediately, by telephone or return email, to advise of wrongful receipt and confirm your understa nding of this Notice. Thank You.
