Loading ...
Sorry, an error occurred while loading the content.

6734Re: [Clip] DOS Output

Expand Messages
  • Tom
    Jul 1, 2001
    • 0 Attachment
      you'll need to remove the double quotes around the ^$getOutput
      argument in order for the suggested clips to work. e.g.:

      ^!TextToFile "^%FileName%" ^$getOutput(help dir)$
      ^!TextToFile "^%FileName%" ^$getOutput(help)$

      cheers,
      tom

      --- In ntb-clips@y..., "Grant" <emerge@p...> wrote:
      >
      > > I'd like to use NTP to prepare text files of the help screens of
      some
      > > DOS commands, say "netstat /?", and put them in "c:my documents".
      > > Could someone please write me an example of how to do this?
      >
      > For non network commands you can use help
      >
      > ^!set %FileName%=^$GetTempFile$
      > ^!TextToFile "^%FileName%" ^$getOutput("help dir")$
      > ^!wait
      > ^!open ^%FileName%
      >
      > for a complete list of commands
      >
      > ^!set %FileName%=^$GetTempFile$
      > ^!TextToFile "^%FileName%" ^$getOutput("help")$
      > ^!wait
      > ^!open ^%FileName%

      ~~ snip ~~
    • Show all 6 messages in this topic