i am trying to change windows file association via ruby. Assoc part works but ftype does not work why it does not work?
pth = Dir.pwd
pth << "/pfReader.exe"
pth.gsub "/","\\"
system("assoc .pf=pfReader")
puts("assoc command is done \n")
system("ftype pfReader = '#{pth}' '%1'")
puts("ftype command is done \n")