From: James Britt Date: 2006-01-03T16:44:02+09:00 Subject: Re: Try to run ruby on windowsxp Mohsen Akhavan wrote: > Hello all > I tired to run this program on the command prompt of windows > Xp > Puts “Hello world” and I encounter the following error: > > “Puts is not recognized as internal or external command. > Operable program or batch file “ > > Please help me ,sincerely yours Mohsena > The Windows command shell expects to be given Windows shell commands, not Ruby commands. Try ruby -e 'puts "Hello, world!"' (You need to give the name of the ruby interpreter so Windows knows what to execute, and the tell Ruby that it should execute the string that follows. That's what the -e is for. ) James -- http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys http://www.30secondrule.com - Building Better Tools