Yes this CMD.exe and $root is just a variable which holds a directory name and it would expand as (virusscanbase is a directory) “ls /tmp/virusScanBase >> resultfile”
Greg Chicares-2 wrote: > > On 2009-04-06 12:14Z, sudhap85 wrote: >> I tried to list the contents of a directory in DOS command prompt and >> redirecting it to a file.This did not add the contents at all. >> “ls $root/virusScanBase >> $resultfile” >> >> As an alternative to this I tried to use >> "echo $root/virusScanBase/*" but this just returns * and not the >> directory >> contents(in Linux it works as expected by listing direcory contents) > > What shell are you using? By "DOS command prompt", do you mean CMD.EXE? > Or is this Cygwin's 'bash'? > > What output do you see from the following commands? > echo $root > echo %root% > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > > -- View this message in context: http://www.nabble.com/%22ls%22-command--not-working-in-windows-2008-tp22907575p22908018.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/