G
Geoff
Hey,
I've been messing with this for hours now and I really thought this
would work! I want to prompt to get the letter of the drive to search,
then if the directory has the text "CFI-" in it, add that full path as
a line to a text file.
file = File.open("projects.txt", "w")
print "Enter Drive Letter: "
drive_letter = gets.chomp
Dir.glob("#{drive_letter}:\\**\\{CFI-}*") do |f|
file << "#{f} \n"
end
Why is this not working?
Thanks!
Geoff
I've been messing with this for hours now and I really thought this
would work! I want to prompt to get the letter of the drive to search,
then if the directory has the text "CFI-" in it, add that full path as
a line to a text file.
file = File.open("projects.txt", "w")
print "Enter Drive Letter: "
drive_letter = gets.chomp
Dir.glob("#{drive_letter}:\\**\\{CFI-}*") do |f|
file << "#{f} \n"
end
Why is this not working?
Thanks!
Geoff