Announcement

Collapse
No announcement yet.

Executing file, with redirection.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Executing file, with redirection.

    I'm trying to run a program, and rediect teh output.

    MyProg.exe
    parameters: /F:somefile >%TempLaunchDir%\File.Out

    the file is never created.

    Thoughts?

  • #2
    Re: Executing file, with redirection.

    I think your best bet is to dynamically create a batch file to do this and launch that, because I don't know how the redirection would be handled in that situation. I can't even really suggest anything other than fooling around with quoting certain parts of the command line. I suspect that it will not work though in the end.

    Comment


    • #3
      Re: Executing file, with redirection.

      Thansk; the problem there is on some systems, comand.com or cmd.exe doesn't close when the batch file is done...

      I took it one step beyond, and made a simple exe that does the call with redirection.

      Comment


      • #4
        Re: Executing file, with redirection.

        As a tip concerning the command window closing, take a look at the following Knowledge Base article:

        Click Here

        Comment


        • #5
          Re: Executing file, with redirection.

          as someone who made a living coding batch files in dos 3 days... I'm ashamed I didn't remember exit....
          Thanks.

          Comment

          Working...
          X