🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #13580

Re: How to do a change dir from file

#13580
From: Jerzy Tarasiuk
Date: Fri, 09 Oct 1992 13:35
17 lines
1166 bytes
>>>>> On Fri, 2 Oct 1992 18:01:04 GMT, william@chopin.udel.edu (Wild William) said:
William> I am trying to do something like this...
William> cd > file name
William> cd new.dir
William> cd < file name
William> to mimic the pushdir and popdir feature of unix.

I suppose the following will work: make a file (say its name
is "C:\cd_") containg "CD ", and a batch file containg:
COPY C:\cd_ C:\cd_.bat
CD >>C:\cd_.bat
CD new.dir
... do something ...
CALL C:\cd_.bat
but note DOS CD doesn't set current drive :-(,
possibly proper use of ECHO and PROMPT can help :-)
(need create batch file containg sth like "C:"CRLF ).
Technical Details
Message-ID: <JT.92Oct9143509@fizyk1.fuw.edu.pl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jt
References: <BvIA1s.D1s@news.udel.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.ibm.pc,comp.sys.ibm.pc.misc,comp.sys.ibm.pc.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jt
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: How to do a change dir from file
In-Reply-To: william@chopin.udel.edu's message of Fri, 2 Oct 1992 18:01:04 GMT
Message-ID: <JT.92Oct9143509@fizyk1.fuw.edu.pl>
Sender: news@fuw.edu.pl
Nntp-Posting-Host: fizyk1
Organization: Warsaw University Physics Dept.
References: <BvIA1s.D1s@news.udel.edu>
Date: Fri, 9 Oct 1992 13:35:09 GMT
Lines: 17