2007/11/7, AndrewMcHorney <[EMAIL PROTECTED]>: > > Hello > > Here is the contents of the string I want to create: > > "dir c: \ /S" so I can get a complete list of all the files in a disk > partition. How can I create this string? > > Andrew >
Do you mean C:\ or C: \ ? I see a space here. Since you are using double quote, you many want to use "C:\\" Here's the line you may want : @files = `dir C:\\ /s`; chomp @files; # clear the \n from the dos prompt new line. Now @files is a list for all the files in your C drive. OT for a bit, as a dos syntax, perhaps you want "/s/b/a/o" also.... hope this help