Re: Running command line commands with parameters read from a text fil

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Are you trying to have your window form application use a text file
when it starts? Couldn't you pass the path to the text file and
receive it in static Main(string[] args) ?

On Apr 25, 10:07 am, orit <o...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I am trying unsuccessfully to implement the following:
Run a command in command line (cmd.exe) while the command will use parameter
read from a text file.
The user will select the file to read in a winform and the same command will
run in a loop while using in each run the value in 1 single line in the text
file.

Can someone please advise what is the best way to do that?

Thanks a lot

.



Relevant Pages

  • Help with app that is EITHER console app OR Windows app
    ... like it to run as a Window form application ... with NO UI and with execution returing to the command line ... In reality all I need is to be able to ...
    (microsoft.public.dotnet.general)
  • Sol8 and EVA hangs
    ... Secure Path 3.0D is loaded for channel failover. ... retrying command ... # Adapter hard loop ID address to use on the fibre channel bus. ...
    (SunManagers)
  • Summary: Sol8 and EVA hangs
    ... Oct 8 11:00:41 proddb SCSI transport failed: reason 'aborted': ... retrying command ... # Adapter hard loop ID address to use on the fibre channel bus. ... # before reporting I/O errors. ...
    (SunManagers)
  • Re: Using foreach loop to create radiobutton menu
    ... Your foreach loop is not the problem, the problem is how you define the -command. ... The only possible thing the interpreter can do is substitute the current value of range, which is likely the last value once your loop exited. ... One choice is double quotes. ... The double quotes means that $range gets expanded while in the loop, long before the puts command actually runs. ...
    (comp.lang.tcl)
  • Re: Issue implementing Runtime.exec() with StreamGobbler
    ... So jloader basically calls LoaderAutomationRun.java (starts the loop) ... As you can see the last line, the New Command Executer never returned. ... If your test driver is hanging, I'd guess that the test process itself is ...
    (comp.lang.java.programmer)