Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!mts.ucs.UAlberta.CA!Al_Dunbar From: userAKDU@mts.ucs.UAlberta.CA (Al Dunbar) Newsgroups: comp.os.msdos.misc Subject: Re: How to put CARRIAGE RETURN in Batch file Message-ID: Date: 27 Jun 91 03:37:39 GMT References: <7130@disc.dla.mil> <3060001@hparc0.HP.COM> Organization: MTS Univ of Alberta Lines: 24 In article <3060001@hparc0.HP.COM>, doug@hparc0.HP.COM (Doug Parsons) writes: >I haven't tested this, but.. > >Create a file thus: > >C:> COPY CON CR. <-- copy from the console (kbd) to file called 'CR'. > <-- hit Enter here, which puts a character in file >Control-Z <-- Press Control-Z here, to terminate input > >(1) file copied. >C:> > >What you have done is created a 2 character file consisting of a CR and a >control-Z (end of file marker). > Funny, when I did this, my two character file contained a CR and an LF instead of the ctl-Z. -------------------+------------------------------------------- Al Dunbar | Edmonton, Alberta | Disclaimer: "not much better than CANADA | datclaimer" -------------------+-------------------------------------------