Path: utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!ftg From: ftg@gatech.edu (Gary Peterson) Newsgroups: comp.sys.ibm.pc Subject: Re: IBM DOS System Variables Message-ID: <17020@gatech.edu> Date: 25 Mar 88 14:31:25 GMT References: <1501@ur-tut.UUCP> Distribution: na Organization: School of Information and Computer Science, Georgia Tech, Atlanta Lines: 20 Keywords: IBM, DOS, Directories, batch files Summary: setting env. var. to path In article <1501@ur-tut.UUCP>, nsto@ur-tut (Natalie Stone) writes: > Is there a way to assign a variable from within a batch file to be > equal to the current directory name so it can then be used in > the batch file. Try something like the following: set tempvar = %prompt% set prompt = $p (Should set prompt to pathname, set pathname = %prompt% may need a backspace, $b?) set prompt = %tempvar% Or since DOS is full of undocumented features, I'm guessing that just set pathanme = $p might work. ftg@gatech