You can also execute system commands from within irb using "system"
system( "mkdir lesson2" )
or backticks
`mkdir lesson2`
Although in the case of "mkdir" you'll probably want to use "Dir.pwd" to
check you're in the right directory, and "Dir.chdir('c:/myfolder')" to
move to the correct folder first.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/4432e7cfb49874eb344e74708f68dfca%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.