Article View: comp.sys.ibm.pc
Article #25915Re: IBM DOS System Variables
From: Pete Fales
Date: Fri, 25 Mar 1988 23:26
Date: Fri, 25 Mar 1988 23:26
17 lines
1043 bytes
1043 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. I would do this with the SETVAR command I obtained from a BBS. It is used to set an environment variable from standard input. So the following code could be put in your batch file: cd | setvar PWD echo I am in directory %PWD% -- Peter Fales UUCP: ...ihnp4!ihlpe!psfales work: (312) 979-7784 AT&T Information Systems, IW 1Z-243 1100 E. Warrenville Rd., IL 60566
Technical Details
Message-ID:
<2812@ihlpe.ATT.COM>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pacbell!att-ih!ihnp4!ihlpe!psfalesReferences:
<1501@ur-tut.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pacbell!att-ih!ihnp4!ihlpe!psfales From: psfales@ihlpe.ATT.COM (Pete Fales) Newsgroups: comp.sys.ibm.pc Subject: Re: IBM DOS System Variables Message-ID: <2812@ihlpe.ATT.COM> Date: 25 Mar 88 23:26:31 GMT References: <1501@ur-tut.UUCP> Distribution: na Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 16 Keywords: IBM, DOS, Directories, batch files