Hi all
I am trying to launch a file - as follows:
but it is giving me the following error:
The filename, directory name, or volume label syntax is incorrect.
If I copy and paste my file into a command window - it runs fine.
Can anyone help me with this, please?
Thanks as always
Craftor
I am trying to launch a file - as follows:
Code:
Process proc = new Process();
proc.StartInfo.RedirectStandardError=true;
proc.StartInfo.RedirectStandardInput=false;
proc.StartInfo.RedirectStandardOutput=false;
proc.StartInfo.CreateNoWindow=true;
proc.StartInfo.ErrorDialog=false;
proc.StartInfo.UseShellExecute=false;
proc.StartInfo.FileName = @"C:\FTPFeed\ftpFeedGen /Url:[URL unfurl="true"]http://testmachine/webpath/engine.asmx/getFile?CompanyKey=DemoTest[/URL] /File:file03022004_051011.xml /User: FTP /pwd: password";
proc.Start();
but it is giving me the following error:
The filename, directory name, or volume label syntax is incorrect.
If I copy and paste my file into a command window - it runs fine.
Can anyone help me with this, please?
Thanks as always
Craftor