Re: Calling exe with parameter doesn't work....

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: Getmac reports ERROR Provider type not defined.
    ... If it is failing in your code, check out WSAGetLastError for the error code. ... my shell can't connect to another pc. ... >> Do you use you customer script to work with netsh? ...
    (microsoft.public.windowsxp.embedded)
  • Re: SPL behaving oddly
    ... > We have an SPL which is failing to run here - it's a fairly simple one ... > put into the IDS message log: ... It looks like a SHELL problem. ...
    (comp.databases.informix)
  • configure problem
    ... I am trying to install per 5.8.3 on a Linux Mandrake 9.2 system and ... failing at the confiuration stage. ... It seems that regardless of the ...
    (comp.lang.perl.misc)
  • Re: Veronica Guerin
    ... but failing that Jake would like a word in your shell like. ... "Bog snorkler extraordinaire" ...
    (soc.culture.irish)
  • Re: Spot the error??
    ... assumed one was failing and it was carrying on regardless (which it ... isolate the one that's "failing"? ... Steve ...
    (microsoft.public.vsnet.ide)