Jump to content
Ketarin forum

Sysinternals.com template


FranciscoR
 Share

Recommended Posts

<?xml version="1.0" encoding="utf-16"?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <VariableChangeIndicator />
   <CanBeShared>false</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>app</string>
       </key>
       <value>
         <UrlVariable>
           <VariableType>RegularExpression</VariableType>
           <Regex>(\w+?\p{P}zip|\w+?\d\w+?\p{P}zip)</Regex>
           <Url><placeholder name="Application Page URL" /></Url>
           <Name>app</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <VariableType>RegularExpression</VariableType>
           <Regex>(?:\</div>)\s+?(?:\</div>){1,}(?:\</td>).*(?:v)(\d{1,}\p{P}\d{1,3})</Regex>
           <Url><placeholder name="Application Page URL" /></Url>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <Category>Sysinternals</Category>
   <SourceType>FixedUrl</SourceType>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated xsi:nil="true" />
   <TargetPath>{target}\{category}\{appname}_{version}.{url:ext}</TargetPath>
   <FixedDownloadUrl>http://download.sysinternals.com/Files/{app}</FixedDownloadUrl>
   <Name><placeholder name="Application Name" /></Name>
 </ApplicationJob>
</Jobs>

 

Insert App Page URL and App name. App Page URL example: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

 

Note: Regex was tested against several urls in this site retrieving NO error (24-01-2009).

 

dlmdmu.png

Edited by FranciscoR
Link to comment
Share on other sites

  • 4 weeks later...
  • 1 year later...

For those with a version number, this is a better regex (I hope this comes thru):

h1>[^<>]+\sv([\d\.]+)<

 

And for those without, I've taken to parsing the updated date:

Updated\:\s*([^<>]+)\s*<

 

Then I play with the order a bit to try to organize it a little better. "2010May08" (mine) vs "May 8, 2010" (original).

 

Hey, any chance of getting the ability to perform mutliple textual replacements on a variable? I'd like to be able to replace "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec" with "01,02,03,04,05,06,07,08,09,10,11,12" - in some form of array replacement operation so the above version number could be transformed from "2010May08" to "20100508". I could see this being used on more than just dates, too.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.