Re: Dir Command to an array

2005-10-28 Thread Chris Devers
On Fri, 28 Oct 2005 [EMAIL PROTECTED] wrote: > I would like to execute a dir */s command in windows and save the > output into an array. I know I can do this in perl by doing executing > the following command in a perl script: > > @allfiles = `find / -print`; You can, but you shouldn't. The

RE: Dir Command to an array

2005-10-28 Thread Timothy Johnson
The dir command has a /b switch that can be used to get just the filenames which can be useful for this kind of thing. If you literally just want an array with the result, then my @allfiles = `dir * /s`; should do the trick. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PR