Xref: utzoo comp.binaries.ibm.pc.d:14204 comp.sys.ibm.pc:55052 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!cbnewsd!alt From: alt@cbnewsd.att.com (art.l.todesco) Newsgroups: comp.binaries.ibm.pc.d,comp.sys.ibm.pc Subject: CHDIR to a directory stored in a file Keywords: CHDIR Message-ID: <1991Apr30.171803.1591@cbnewsd.att.com> Date: 30 Apr 91 17:18:03 GMT Followup-To: att!ihlpf!alt Distribution: na Organization: AT&T Bell Laboratories Lines: 12 I think I have seen this posted before, but I don't remember now. I would like to write a batch file that will store the present directory, change to a new directory, execute a program, and change back to the original directory before exiting. I can store the present directory in a file by redirecting the output of CHDIR > filename, however, I can't find a way to get that info back to CHDIR or other public domain directory change programs I have. Is there a binary that can take standard input (to use the UNIX term) or is there a way of doing it in the batch program (why didn't they call it a shell script like UNIX?)? Thanx, Art Todesco att!ihlpf!alt