Sunday, May 13, 2007

FAQ: How do I get to a command prompt?

Click your Windows Start button, then select Programs, then Accessories, then Command Prompt. Or click the Start button, select Run, type in 'cmd' and click OK. If you're not very familiar with the Windows command prompt, I recommend this brief but informative overview.

4 comments:

Jeremy Woertink said...

Would you happen to know how to access a command prompt using Ruby? I am looking to make a script that will open up cmd.exe and then ruby ruby script/server from a specified path.
If you got any ideas, that would be a great post.

Thanks,

Jeremy

David Mullet said...

You can use the system method to run a shell command...

system('ruby c:/my_rails_app/script/server')

Anonymous said...

Add a send-to shortcut which links to the commmand "cmd /k".

Jobs a gudden...

I find this really useful working with ruby scripts.

Anonymous said...

I am just getting started with this stuff, can anyone explain to me how to enter the ruby code exactly? I have ruby downloaded, how do I get into it exactly? I can get into the shell prompt, or whatever it's called, but how do I access the ruby language exactly?