Assume, I have a file 'text_file.txt' within my .rb script. How do I execute a default windows program for that file from the Ruby?
+3
A:
From IRB:
system "start text_file.txt"
From a shell:
ruby -e 'system "start text_file.txt"'
JRL
2009-10-06 17:52:12
Thanks for this 'start' word
gmile
2009-10-06 19:21:32