Dear Neil,
Thanks for your reply.
Using $(FilePath) and $(FileDir) does not work yet.
e.g.,
command.15.*=dostring os.execute("cmd /C copy $(FilePath)
$(FileDir)\$(FileName)_"..os.date("%y%m%d%H%M%S")..".$(FileExt)")
Best regards.
Lan
------------------------------
2012-07-16 16:23:37
*Sender:* Neil Hodgson <nyamaton...@me.com>
*Date:* 2012年6月4日(星期一) 上午10:30
*To:* scite-interest <scite-interest@googlegroups.com>
*Subject:* Re: [scite] dostring command does not work since version 3.1.0
s andf wrote:
I use the following command to backup my file:
command.15.*=dostring os.execute("cmd /C copy $(FileNameExt)
$(FileName)_"..os.date("%y%m%d%H%M%S")..".$(FileExt)")
However, this command works for version 3.0.4 but not for both version
3.1.0 and 3.2.0
Is it a bug?
The current directory is no longer set before running Lua commands so
you should include full paths in the command using $(FilePath) and
$(FileDir).
The reason that the current directory is no longer being set is that
this has caused various problems on each platform in the past. On Windows,
setting the current directory locks that directory so it can not be deleted.
Neil
--
You received this message because you are subscribed to the Google Groups
"scite-interest" group.
To post to this group, send email to scite-interest@googlegroups.com.
To unsubscribe from this group, send email to
scite-interest+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/scite-interest?hl=en.