Sha256: 4f4f4e567de7a0879ab5c00ee13714bedf39998ba98820e19a6ef7df462bbdec

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

  def removeapplet
   require 'fileutils'
    nametext = "%s" % [@a_removeapplet]
	 
      #  begin # exception trapped block
   	 fileName = "installed/" + nametext + ".inf"
        count =  0
	fd = File.open(fileName,"r") 
	       
   	    
   	    fd.each { |oneline|   
         if count == 1
         puts oneline
        FileUtils.rm_rf( oneline.chop)
        
         end
         count = 1
      }
   fd.close
   puts fileName
    FileUtils.rm_rf( fileName)
    
    
   @removeapplettext = "applet files removed! - restart rwd to finish uninstalling"    
 
       # rescue
        #    @removeapplettext = "\n" + "error"
       # end # exception rescue

  end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
rwdaddresses-0.99 code/superant.com.rwdtinkerbackwindow/removeapplet.rb
rwdtinker-1.57 code/superant.com.rwdtinkerbackwindow/removeapplet.rb