Re: Calling exe with parameter doesn't work....
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Sat, 18 Mar 2006 14:10:45 -0400
re:
I did it especially so I don't think it is a reason:
Regardless of whether you "did it especially", the way you're doing it is failing.
Did you test the alternate ways I suggested you do it ?
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"christof" <nomail@xxxxxxxxx> wrote in message news:%23CFHyWqSGHA.5500@xxxxxxxxxxxxxxxxxxxxxxx
Juan T. Llibre wrote:
@"-u myuser --password=mypass > my5 > F:\\MySQL\\Backup\\my5a";
produces :
-u myuser --password=mypass my5 > F:\\MySQL\\Backup\\my5a
as the output, which will fail silently as a bad path.
If you use the @ to create a literal string, remove the double slashes.
Use :
.Arguments =@"-u myuser --password=mypass > my5 > F:\MySQL\Backup\my5a";
OR use :
.Arguments ="-u myuser --password=mypass > my5 > F:\\MySQL\\Backup\\my5a";
I did it especially so I don't think it is a reason:
In windows in shell you have to launch mysqldump like
mysqldump -u user --password=pass db_name > C:\\Dir\\File
with double backslashes or simply:
mysqldump -u user --password=pass db_name > C:/Dir/File
both works fine from shell, so the problem is not here.
Thanks anyway
.
- Follow-Ups:
- Re: Calling exe with parameter doesn't work....
- From: christof
- Re: Calling exe with parameter doesn't work....
- References:
- Calling exe with parameter doesn't work....
- From: christof
- Re: Calling exe with parameter doesn't work....
- From: Juan T. Llibre
- Re: Calling exe with parameter doesn't work....
- From: christof
- Calling exe with parameter doesn't work....
- Prev by Date: webAdmin remote ?
- Next by Date: Building Web farm with ASP.NET 2.0
- Previous by thread: Re: Calling exe with parameter doesn't work....
- Next by thread: Re: Calling exe with parameter doesn't work....
- Index(es):
Relevant Pages
|