Re: system "dir"; works fine, but system "dir foo.txt" gets anerror

2002-01-31 Thread Dave Benware
Peter Scott wrote: > > At 11:35 AM 1/31/02 -0500, Dave Benware wrote: > >The line system "dir foo.txt"; returned "Bad command or file name". > > > >foo.txt does exist and I can run dir foo.txt within a dos box just > >fine. Interestingly to me, system "dir"; worked okay. I guess it > >just wo

Re: system "dir"; works fine, but system "dir foo.txt" gets anerror

2002-01-31 Thread Peter Scott
At 11:55 AM 1/31/02 -0500, Dave Benware wrote: > > Nope. It just thinks that the name of the command you're running is "dir > > foo.txt". Separate the arguments explicitly, e.g.,: > > > > C:\WINDOWS>perl -e "system qw(dir mouse.txt)" > >Yah, that works fine, tho I don't understand why. Is there