Changeset 1536


Ignore:
Timestamp:
May 30, 2010, 11:48:54 PM (15 years ago)
Author:
John Small
Message:

Fix extraneous file close problem plus a few cosmetic changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cfgmgr.cmd

    r1530 r1536  
    721721               backup_file       = '.\User_Config_backup\B4Unzip6.bb2'
    722722               if stream(backup_file, 'c', 'query exists') \= '' then
    723                   if cfg.unattended = 0 then
     723                  if cfg.unattended = 1 then
    724724                     do
    725725                        say 'This process has already been executed.'
     
    732732               if insert_line > 0 then
    733733                  do
    734                      'copy' bb2_file backup_file '>NUL 2>NUL'
     734                     '@copy' bb2_file backup_file '>NUL 2>NUL'
    735735                     if rc \= 0 then
    736736                        return
     
    753753                  end
    754754               else
    755                   if cfg.unattended = 0 then
     755                  if cfg.unattended = 1 then
    756756                     say 'Unable to find place to insert definition.'
    757757            end
    758758         else
    759             if cfg.unattended = 0 then
     759            if cfg.unattended = 1 then
    760760               say 'Unable to find Unzip v6 definition'
    761761      end
    762762   else
    763       if cfg.unattended = 0 then
     763      if cfg.unattended = 1 then
    764764         say 'Unzip v6 definition is already installed.'
    765765return
     
    771771   call SysFileSearch start_string, filename, 'start_lines.', 'N'
    772772   call SysFileSearch end_string, filename, 'end_lines.', 'N'
    773    call stream filename, 'c', 'close'
    774773   start_line = 0
    775774   do i = 1 to start_lines.0
Note: See TracChangeset for help on using the changeset viewer.