Simple C # Solution Help
-
I am new to C# and struggling with what should be a simple solution. Problem: I am running a batch file that calls a script executing a MOSS STSADM operation, however; the operation does not allow me to pass certain parameters thus it will prompt for certain arguments. What I am trying to do: Execute the batch file within C# and pass the parameters so that it does require any user action. I have tried various approaches and I am just spinning in circles any suggestions as to the “frame work” would be greatly appreciated. Thanks
-
I am new to C# and struggling with what should be a simple solution. Problem: I am running a batch file that calls a script executing a MOSS STSADM operation, however; the operation does not allow me to pass certain parameters thus it will prompt for certain arguments. What I am trying to do: Execute the batch file within C# and pass the parameters so that it does require any user action. I have tried various approaches and I am just spinning in circles any suggestions as to the “frame work” would be greatly appreciated. Thanks
-
Use Process.Start[^] to execute a batch file with optional arguments.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
Thanks for that, I am using process.start and it seems to pass the arguments to the batch which executes. However, I tried to answer the prompts that followed by accessing stdin but the only argument that seems to get passed is the "Enter Key". Any thoughts as to where I am going wrong? Thanks, Dennis
Regards, Hulicat
-
I am new to C# and struggling with what should be a simple solution. Problem: I am running a batch file that calls a script executing a MOSS STSADM operation, however; the operation does not allow me to pass certain parameters thus it will prompt for certain arguments. What I am trying to do: Execute the batch file within C# and pass the parameters so that it does require any user action. I have tried various approaches and I am just spinning in circles any suggestions as to the “frame work” would be greatly appreciated. Thanks
hi just use the process class and pass the args
Cheers,Earn and Enjoy RRave MCTS,MCPD http://ravesoft.blogspot.com