[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

'gets' OS commands?

woodyee

12/28/2006 6:04:00 PM

Hi! I'm creating a little program for myself:

# Have user enter a directory in Windows (ex., C:\ or C:\Windows, etc)
# Have the user search the directory for .txt files
# Have user pick a file to read

I'm stuck at #1! Yikes! How can I get a user to input a command (like
"Dir.chdir")? Thanks!

1 Answer

woodyee

12/28/2006 6:59:00 PM

0


woodyee wrote:
> Hi! I'm creating a little program for myself:
>
> # Have user enter a directory in Windows (ex., C:\ or C:\Windows, etc)
> # Have the user search the directory for .txt files
> # Have user pick a file to read
>
> I'm stuck at #1! Yikes! How can I get a user to input a command (like
> "Dir.chdir")? Thanks!


YIKES! I double posted! :-)

Thanks in advance!