Hi all,
I have a unix script which needs to be implemented in DOS script
here is the unix script..
#---------script starts
nofiles=`ls | grep ^a`
#This line gets the all file and dir which start wih 'a'
for i in $nofiles
do
if [ -d $i ] # This line checks for dir
then
rm $i
fi
done
#---------script ends
my requiremet is to have to delete all ej* directories from a folder in one go..
Thnaks
unix script needs to be implemented in DOs Batch script
Moderator: DosItHelp
-
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa