Click here to Skip to main content
15,902,299 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
&I'm trying to run dcmqrscp from c++ visual studio 2012.

using the following code dcmqrscp. exe start normally

Myprocess.start("c:\program\dcmqrscp", "-c c\data\dcmqrscp.cfg" )

Whereas adding a second argument do not start.

Myprocess.start("c:\program\dcmqrscp", "-c c\data\dcmqrscp.cfg -v. > c:\data\dcmqrscp.log")


Do you have any suggestion

Than you
Andrea
Posted

1 solution

You cannot add redirection of the program's output in that way; that only works when running in a command shell. If you want the output (or input) redirected then you need to set the redirection handles in your STARTUPINFO[^] settings.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900