From: Stephan Rink Newsgroups: comp.os.msdos.misc,comp.os.msdos.djgpp Subject: to pipe system variables other variables at command line Date: Mon, 26 Jun 2000 09:09:03 +0200 Organization: RRZN - Newsserver Test Lines: 17 Message-ID: <3957018F.35C44125@gmx.de.de> NNTP-Posting-Host: h60.ts1.uni-hannover.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsserver.rrzn.uni-hannover.de 962003050 4924 130.75.249.60 (26 Jun 2000 07:04:10 GMT) X-Complaints-To: abuse AT newsserver DOT rrzn DOT uni-hannover DOT de NNTP-Posting-Date: 26 Jun 2000 07:04:10 GMT X-Mailer: Mozilla 4.7 [de] (WinNT; I) X-Accept-Language: de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I like to pipe a system variables to another variable at a MS DOS shell without using a file. At the command line it should look like this C:> var1 < date /t // this will cause an error C:> copy name.txt name%var1.txt or C:> set var1= | date /t // this will show only the date C:> copy name.txt name%var1.txt How can I submit the output of a command to a Variable? Stephan