Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Check Manifest Get Read
#DefineFunction ManifestCheck ( file ) bb = BinaryAlloc( FileSize( file ) ) BinaryRead( bb, file ) structure = BinaryTagInit( bb, "<requestedExecutionLevel", "></requestedExecutionLevel>") structure = BinaryTagFind( structure ) If structure == "" retval = "*none*" Else retval = BinaryTagExtr(structure,1) EndIf BinaryFree( bb ) Return StrTrim( retval ) #EndFunction DirChange('C:\Program Files\WinBatch\System\') file1 = 'WINBATCH.EXE' file2 = 'WinBatch_AF.EXE' file3 = 'WinBatch_AT.EXE' file4 = 'WinBatch_HF.EXE' file5 = 'WinBatch_HT.EXE' file6 = 'WinBatch_IF.EXE' file7 = 'WinBatch_IT.EXE' file8 = 'WinBatch_NN.EXE' count = 8 For i = 1 To count file = file%i% result = ManifestCheck ( file ) Pause( 'Manifest Check', file : @CRLF : result ) Next
Article ID: W17429
File Created: 2008:04:10:15:09:56
Last Updated: 2008:04:10:15:09:56