Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!netnews.upenn.edu!msuinfo!cpsin1!draper From: draper@cpsin1.uucp (Patrick J Draper) Newsgroups: comp.sys.ibm.pc.programmer Subject: Re: Current directory from batch file Message-ID: <1990May8.064104.18946@msuinfo.cl.msu.edu> Date: 8 May 90 06:41:04 GMT References: <90122.175401MCCABE@MTUS5.BITNET> <10153.26405d35@vax1.cc.lehigh.edu> <1873@gannet.cl.cam.ac.uk> <90May7.072047edt.19230@me.utoronto.ca> <1990May8.003238.6922@agate.berkeley.edu> <90May7.215707edt.19841@me.utoronto.ca> Sender: news@msuinfo.cl.msu.edu Organization: Michigan State University, East Lansing Lines: 26 >You've told half of the story, but what about the other half? I am >interested in how you create that \usr\lib\cdspace file. I don't know >of any smart way to get this done except by a line of C code: > > main() {printf("cd ");} > >Is there editor/word processor out there that can kill CR+LF? > >BTW, "cd>>\tmp\cdspace.bat" was neat. I didn't know you can do it this way >before. > >Andy I noticed that some others suggested using Norton's editor or some other package, but if you don't have those, you can use the dos copy con: command. I tried this and it didn't put a CR+LF into the file. ex. -> copy con: testfile.txt -> cd I got a file with a length of 3, with cd . Patrick Draper --- Michigan State University