I/O redirecting in windows shell
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: I/O redirecting in windows shell

  1. #1
    Join Date
    Feb 2011
    Posts
    3

    I/O redirecting in windows shell

    Hi,

    I want to redirect a file to my application. in this file are my command line arguments.

    I want to do something like this:
    "dir < arguments.txt"
    content of my arguments.txt is in this example just "/D"

    in my opinion executing the command "dir < arguments.txt" should be equal to "dir /D"

    but it's not. why?

    thanks
    juergen

  2. #2
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,839

    Re: I/O redirecting in windows shell

    [ moved thread ]
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,839

    Re: I/O redirecting in windows shell

    Sorry, but you're not being completely clear. Are you saying you want to make your application accept parameters?

    In what language are you writing this?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  4. #4
    Join Date
    Feb 2011
    Posts
    3

    Re: I/O redirecting in windows shell

    I use a compiled exe program. I want to give that program command line parameters from a file.
    But it doesn't work. I can't even get the simple DOS command "dir" to accept command line arguments from file.

    how can I do this?



    thanks
    juergen

  5. #5
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,839

    Re: I/O redirecting in windows shell

    Unless the app is written to accept that, you cannot change it after it's been compiled.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  6. #6
    Join Date
    Feb 2011
    Posts
    3

    Re: I/O redirecting in windows shell

    too bad. ok. thank you.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center