'gets' OS commands?

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!

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! :slight_smile:

Thanks in advance!