Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 2
    For me this only works for the first 1024 characters of the file. Sorry, I missed the fact this was on cygwin. Maybe it works better under cygwin. Commented Apr 24, 2014 at 10:15
  • @RussellGallop, did you find a workaround for this limitation? Commented May 28, 2014 at 12:08
  • set /P can only read 1024 characters. To read more, use for /F as shown in SpaceMonkey answer below. Commented May 28, 2014 at 15:41