uuups, of course the require needs a better argument; the script is:

require 'fileutils'    # not 'FileUtils'
FileUtils.cp_r('path_to_rubyweblog/.',  'path_to_myrubyweblog')

Raul

On Wed, Oct 8, 2008 at 7:24 PM, raul parolari <[EMAIL PROTECTED]>wrote:

>
>
> Hi Mee,
>
>    this can be done easily with a script of your own; for example, for the
> problem you pose, you could write a script with these 2 lines:
>
> require 'FileUtils'
> FileUtils.cp_r('path_to_rubyweblog/.',  'path_to_myrubyweblog')
>
> Of course you can add the code to check that there are 2 arguments, etc.
>
> This may not be the answer that you were looking for, but just to indicate
> that Ruby is a fantastic language for system administration (and a healthy
> alternative to the sad clicking on folders, or trying to remember Dos
> commands of centuries ago). And of course it is portable knowledge across
> platforms.
>
> Raul
>
>
> On Wed, Oct 8, 2008 at 4:52 PM, MeeWah Tam <[EMAIL PROTECTED]> wrote:
>
>> Hello,
>> I have a dumb question but if I get a answer then I'll save sometimes.
>> I create a new rails project called myrubyweblog, how can I copy all
>> sub-dirs from rubyweblog to myrubyweblog?
>> I'm on window, and don't want to do copy and paste each folder.
>>
>> Thanks,
>>
>> Mee
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to