I think you should use '*.txt' instead of "*.txt". Here the output from 
my WinXP:

C:\>ruby -e "puts ARGV.join(' - ')" *.txt
atlog.txt - ClientCfg.txt - dfsinfo.txt - ipconfig.txt - 
javainstalls.txt - NewG
zCompressedFile.txt - sdatlog.txt - setregion.txt - trace.txt

C:\>ruby -e "puts ARGV.join(' - ')" '*.txt'
*.txt

C:\>ruby -e "puts ARGV.join(' - ')" "*.txt"
atlog.txt - ClientCfg.txt - dfsinfo.txt - ipconfig.txt - 
javainstalls.txt - NewG
zCompressedFile.txt - sdatlog.txt - setregion.txt - trace.txt

C:\>ruby --version
ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]

C:\>


-- 
Posted via http://www.ruby-forum.com/.