Click to See Complete Forum and Search --> : I/O redirecting in windows shell


hogolo01
February 8th, 2011, 10:08 AM
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

PeejAvery
February 8th, 2011, 12:39 PM
[ moved thread ]

PeejAvery
February 8th, 2011, 12:40 PM
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?

hogolo01
February 9th, 2011, 02:10 AM
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

PeejAvery
February 9th, 2011, 08:13 AM
Unless the app is written to accept that, you cannot change it after it's been compiled.

hogolo01
February 10th, 2011, 04:17 AM
too bad. ok. thank you.