Windows new user cheat sheet?

Just throwing this out there…

Periodically I am made aware that not all Windows users are familiar
with cmd.com and the Windows command line. It seems to me that it would
be very helpful if somebody who is familiar with Windows and Ruby would
put together a little “cheat sheet” of Windows things that new Ruby
users on Windows need to know.

For example, how to start a command window and what to do with it once
it’s started. What directories are and how to manipulate them with
commands. Here I’m thinking of dir, mkdir, chdir, etc. (Might even need
a “cmd.com commands for beginners” section.) What a text editor is, why
you can’t use Word to write Ruby code. How to run a Ruby program that’s
been saved in a file.

I’m not really Windows-knowledgeable-enough to do this myself. You Ruby
& Windows users out there know better than I do what’s useful. I’m
guessing that this would make a very popular blog entry.

P.S. Maybe a different one for OS X users, too.

On 29/04/07, Tim H. [email protected] wrote:

commands. Here I’m thinking of dir, mkdir, chdir, etc. (Might even need
a “cmd.com commands for beginners” section.) What a text editor is, why
you can’t use Word to write Ruby code. How to run a Ruby program that’s
been saved in a file.

I’m not really Windows-knowledgeable-enough to do this myself. You Ruby
& Windows users out there know better than I do what’s useful. I’m
guessing that this would make a very popular blog entry.

Why do you want the users to use command line on Windows? You can make
directories and move around files in both Explorer and Ruby just fine.
There are commands like ipconfig or net which only work in command
line but these are needed only in very specific situations.

Ruby scripts open their own text window so you do not have to start
them from command line for that. At least it works for me.

And if you want a real shell there is msys (the support environment
for mingw) which has a bourne shell, coreutils, diff, …

Thanks

Michal

Michal S. wrote:

I don’t want anybody to do anything in particular. I simply observe that
occasionally Ruby users on Windows need to use the command line, to
install gems, to set up Rails projects, etc., and those who don’t know
how to do this might appreciate some help.

Tim H. wrote:

I don’t want anybody to do anything in particular. I simply observe that
occasionally Ruby users on Windows need to use the command line, to
install gems, to set up Rails projects, etc., and those who don’t know
how to do this might appreciate some help.

And it’s done quite easily. You don’t have to cover much stuff.

I’ll hack something up, and send it to the list.


Phillip “CynicalRyan” Gawlowski
http://cynicalryan.110mb.com/
http://clothred.rubyforge.org

Eek! That was supposed to be My Special Law, MY special law, I tell
you!

T/

On Apr 30, 8:20 am, Tim H. [email protected] wrote:

for mingw) which has a bourne shell, coreutils, diff, …

I don’t want anybody to do anything in particular. I simply observe that
occasionally Ruby users on Windows need to use the command line, to
install gems, to set up Rails projects, etc., and those who don’t know
how to do this might appreciate some help.


RMagick [http://rmagick.rubyforge.org]
RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html]

Tim-

I may be able help with this, as it would seem relevant to my Ruby on
Windows blog.

Feel free to contact me with specific thoughts about content.

David M.
http://rubyonwindows.blogspot.com
david [dot] mullet (at) gmail {dot} com

I use Ruby in a Windows environment on a daily basis at work. I use vim
for
text editing and Windows Powershell to execute scripts.
http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx

I find the standard Windows Command Prompt to be too limited and I’ve
never
taken the time to get Cygwin setup properly.

On 30/04/07, Tim H. [email protected] wrote:

for mingw) which has a bourne shell, coreutils, diff, …

I don’t want anybody to do anything in particular. I simply observe that
occasionally Ruby users on Windows need to use the command line, to
install gems, to set up Rails projects, etc., and those who don’t know
how to do this might appreciate some help.

I use ruby on Windows and I never really needed to use the windows
commandline in connection with ruby. The one click installer
associates scripts with ruby so all I need is to write the script in
an editor and doubleclick it. But a windows shell extension “irb here”
similar to the MS “Command Prompt Here” could be useful.

I have never tried to use Rails or install additional gems so I do not
know about that.
I think there could be something like CPAN shell for gem installation.
The CPAN shell runs in a loop and executes simple commands like
"install " or "remove ".

Thanks

Michal

On 01/05/07, Harold H. [email protected] wrote:

First grab this and put it in C:\ruby:
http://www.danceliquid.com/irbhere/irbhere.bat

Then grab this and double click it to import it into your registry:
http://www.danceliquid.com/irbhere/irbhere.reg

Then right click a folder in Explorer (or even the little folder icon
in the top left of an open Explorer window) and choose “irb here!”

Thanks for the sweet idea.

Thanks for the swift implementation.

I will try it out next time I get to Windows.

Michal

On 01/05/2007, Harold H. [email protected] wrote:

First grab this and put it in C:\ruby:
http://www.danceliquid.com/irbhere/irbhere.bat

Then grab this and double click it to import it into your registry:
http://www.danceliquid.com/irbhere/irbhere.reg

Then right click a folder in Explorer (or even the little folder icon
in the top left of an open Explorer window) and choose “irb here!”

Nice hack

It has the same flaw as the MS Command Prompt Here, though. You can
only run the prompt in a folder that you see closed, not one that is
already open.

I guess it works well within limitations of the environment.

Thanks

Michal

Interesting points here. I have to admit that a Ruby & Windows CMD
shell cheat sheet is probably less useful than a Ruby & Windows CMD
shell gotcha list.

Certainly the windows shell environments impose some nasty limitations
on Unicode use
(the platform encoding seems to dominate). There could be more traps
too. BTW I know nothing about powershell, so my comments do not apply
there.

On 5/1/07, Michal S. [email protected] wrote:

I use ruby on Windows and I never really needed to use the windows
commandline in connection with ruby. The one click installer
associates scripts with ruby so all I need is to write the script in
an editor and doubleclick it. But a windows shell extension “irb here”
similar to the MS “Command Prompt Here” could be useful.

What a great idea! And so easily done. (:

First grab this and put it in C:\ruby:
http://www.danceliquid.com/irbhere/irbhere.bat

Then grab this and double click it to import it into your registry:
http://www.danceliquid.com/irbhere/irbhere.reg

Then right click a folder in Explorer (or even the little folder icon
in the top left of an open Explorer window) and choose “irb here!”

Thanks for the sweet idea.

hth,
-Harold

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs