Changeset 1621


Ignore:
Timestamp:
Aug 14, 2011, 4:18:23 AM (14 years ago)
Author:
Gregg Young
Message:

Updated to do a better job of finding the correct wic.exe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/warpin/bld_fm2utils_wpi.cmd

    r1246 r1621  
    143143            call ErrorExit 5
    144144      end
    145    end
    146    WPI.WIC_pgm = 'WIC.EXE'
    147    WIC_filename = SysSearchPath( 'PATH', 'WIC.EXE' )
    148    if WIC_filename == '' then
    149       do
    150          parse value SysIni( , 'WarpIN', 'Path' ) with Warpin_Path '00'x .
    151          WPI.WIC_pgm = Warpin_Path || '\WIC.EXE'
    152          if stream( WPI.WIC_pgm, 'C', 'query exists') = '' then
    153             call ErrorExit 2
    154       end
    155    else
    156       Warpin_Path = left(WIC_filename, lastpos('\', WIC_filename) - 1)
    157 
     145   end   
     146   parse value SysIni( , 'WarpIN', 'Path' ) with Warpin_Path '00'x .
     147   WPI.WIC_pgm = Warpin_Path || '\WIC.EXE'
     148   if stream( WPI.WIC_pgm, 'C', 'query exists') = '' then
     149      call ErrorExit 2
    158150   Warpin_pathentry = ';' || translate(Warpin_path) || ';'
    159 
    160151   ext_libpath = SysQueryExtLibpath('B')
    161152   if pos( Warpin_pathentry, ';' || translate(ext_libpath) || ';' ) == 0 then
Note: See TracChangeset for help on using the changeset viewer.