<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:ArialMT;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:971206158;
        mso-list-template-ids:-1424850278;}
@list l0:level1
        {mso-level-start-at:2;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> wpkg-users-bounces@lists.wpkg.org [mailto:wpkg-users-bounces@lists.wpkg.org]
<b>On Behalf Of </b>Urs Rau (UK)<br>
<b>Sent:</b> 26 January 2012 13:04<br>
<b>To:</b> wpkg-users@lists.wpkg.org<br>
<b>Subject:</b> [wpkg-users] how to safely copy wpkg.xml to a central UNC location when using Wpkg Agent (for after-processing with wpkgCreateReport)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">I am probably missing the tree for the forrest on this one. It seems so easy and even the product docs for wpkgCreateReport says under point 2.2<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p style="margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">    
</span></span></span></b><![endif]><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Prerequisites
<o:p></o:p></span></b></p>
<p style="margin-left:36.0pt"><b><span style="font-size:10.0pt;font-family:"ArialMT","serif";color:#14003D"><cut some></span></b><b><span style="font-size:10.0pt"><o:p></o:p></span></b></p>
<p style="margin-left:36.0pt"><b><span style="font-size:10.0pt;font-family:"ArialMT","serif"">The prerequisite is that you have copied the wpkg.xml file of every client to a central directory, carrying the name of the computer it originates from. This can<span style="color:red">
 easily </span>be achieved by appending something like the following command line at the end of the script file you are calling wpkg from.
</span></b><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p></o:p></span></b></p>
<p style="margin-left:36.0pt"><b><span style="font-size:10.0pt;font-family:"ArialMT","serif";color:#007F00;background:#E5E5E5">copy /Y "%windir%\system32\wpkg.xml" “%wpkgshare%\clientStates\%computername%.xml" </span></b><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif""><o:p></o:p></span></b></p>
</div>
</div>
<div>
<p class="MsoNormal">I can see how this is <span style="color:red">easily</span> achieved in a deployment where a batch file calls up wpkg.js processing, one adds it just after cscript has finished executing wpkg.js and returns. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">But how do you practically do it when using the wpkg agent, which is a service that does not really finish or return in that sense ? It seems that anything I try to do from it finds the wpkg.xml locked because the wpkg agent is currently
 processing it. Doohh! <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">There must be an embarrassingly easy answer to this, surely?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks for pointing out what must be really "obvious" to most.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt;font-family:"Helvetica","sans-serif";color:black">-- <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt;font-family:"Helvetica","sans-serif";color:black">Urs Rau<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray">Operation Mobilisation (OM) - a company limited by guarantee - The Quinta, Weston Rhyn, Oswestry, SY10 7LT, United Kingdom<br>
Company reg no: 2564320 (England & Wales) - Charity reg. no: 1008196 (England & Wales) - SC040988 (Scotland)<br>
Web: <a href="http://www.uk.om.org">http://www.uk.om.org</a></span><span style="font-size:7.5pt;font-family:"Arial","sans-serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Urs,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I was just testing this myself. Drove me nuts for a while since it would work for me, but not for the agent. The way to get it work (at least on a Windows 7
 64-bit OS) is to map the network drive to a drive letter first. It would not work until I mapped the drive letter.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Leon Hedding<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">OM International Limited - Unit B Clifford Court, Cooper Way - Carlisle CA3 0JG - United Kingdom<br>
A company limited by guarantee - Charity reg no: 1112655 - Company reg no: 5649412 (England and Wales)<br>
</font>
</body>
</html>