Recent

Author Topic: [SOLVED]Shellexecute Problem  (Read 5376 times)

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
[SOLVED]Shellexecute Problem
« on: January 23, 2010, 10:20:09 pm »
Hi all,

I have problem with the shellexecute, i just want to create a file which name is dbase.
Here is my statement;

ShellExecute(0, 'open', PChar('c:\db\plink.exe -ssh -l xxxx -pw xxxx 192.168.2.10'), PChar('"touch dbase"'), nil, SW_SHOW);

But this statement doesnt work, what could be the problem?
Thanks.
« Last Edit: January 23, 2010, 11:24:08 pm by IndianaJones »

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
[SOLVED]Re: Shellexecute Problem
« Reply #1 on: January 23, 2010, 11:23:34 pm »

The case is solved, here is the right statement.
Thanks

ShellExecute(0, 'open', PChar('c:\db\plink'), PChar('-ssh -l xxxx -pw xxxx 192.168.2.10 "touch dbase"'), PChar(''), SW_HIDE);

 

TinyPortal © 2005-2018