> for /f "usebackq" %%i in (`some command`) do some other command %i > > cd /c d:\xyz Thanks, I didn't know about this. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics