Kix commands will not run directly in DOS/Command mode. You must envoke kix to use these commands. Note, SETM was broken in some of the later versions of kix so use the latest rc build. I think Darren's solution assumes you will envoke kix. If you want to stay in batch you must use the FOR command to implement Darren's suggestion.

It is a long time since, I worked on this but the utilities PUTENV.EXE & PUTINENV.EXE can access various DOS shells extrenal to the active shell. I suspect there are other utilities that can also do this.

[ 11. February 2003, 16:46: Message edited by: Jack Lothian ]
_________________________
Jack