[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: os execute
- From: Rob Kendrick <rjek@...>
- Date: Tue, 7 Sep 2010 23:14:20 +0100
On Wed, Sep 08, 2010 at 12:54:55AM +0300, soly man wrote:
> when I try to use this with lua i tried the following
>
> osexecute(""C:\Program Files\WinSCP\WinSCP.exe" /console
> /script="C:/puttyfac/ExtraPuTTY/Bin/winscp/winscpftp.txt"
> /log="C:/puttyfac/ExtraPuTTY/Bin/winscp/winscplog.log"
> ")
> but i got an error
Do we get to guess what the error was? :) Anyway, you can't nest quotes
like that. Fortunately, Lua offers three ways of delimiting strings; ",
' and [[/]]. So simply change the outer quotes to one of the other two
styles.
B.