Article View: comp.sys.ibm.pc
Article #25894Re: IBM DOS System Variables
From: Gary Peterson
Date: Fri, 25 Mar 1988 14:31
Date: Fri, 25 Mar 1988 14:31
20 lines
1001 bytes
1001 bytes
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
Technical Details
Message-ID:
<17020@gatech.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!ftgReferences:
<1501@ur-tut.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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