BizTalk Server General - calling windows command from Biztalk Pipeline

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > October 2004 > calling windows command from Biztalk Pipeline





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author calling windows command from Biztalk Pipeline
fzee

2004-10-28, 5:49 pm

I wrote some code in an c#.net win app that executes a command line utility
(ex: xcopy.exe file1 file2)

I'm trying to do the same thing in a Biztalk pipeline component but it's not
working. I'm also not getting any errors. Can anyone help? See code
snipit below:

System.Diagnostics.Process pcess = new System.Diagnostics.Process();
pcess.StartInfo.UseShellExecute=true;
pcess.StartInfo.CreateNoWindow=true;
pcess.StartInfo.WindowStyle=System.Diagnostics.ProcessWindowStyle.Hidden;
pcess.StartInfo.FileName = "xcopy";
pcess.StartInfo.WorkingDirectory=_WorkingDirectory;
pcess.StartInfo.Arguments= arg1 + " " arg2;
pStat=pcess.Start();
fzee

2004-10-29, 2:47 am

figured it out...it was permissions

"fzee" wrote:

> I wrote some code in an c#.net win app that executes a command line utility
> (ex: xcopy.exe file1 file2)
>
> I'm trying to do the same thing in a Biztalk pipeline component but it's not
> working. I'm also not getting any errors. Can anyone help? See code
> snipit below:
>
> System.Diagnostics.Process pcess = new System.Diagnostics.Process();
> pcess.StartInfo.UseShellExecute=true;
> pcess.StartInfo.CreateNoWindow=true;
> pcess.StartInfo.WindowStyle=System.Diagnostics.ProcessWindowStyle.Hidden;
> pcess.StartInfo.FileName = "xcopy";
> pcess.StartInfo.WorkingDirectory=_WorkingDirectory;
> pcess.StartInfo.Arguments= arg1 + " " arg2;
> pStat=pcess.Start();

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com