Re: Re: [scite] dostring command does not work since version 3.1.0

41 views
Skip to first unread message

s andf

unread,
Jul 16, 2012, 4:29:59 AM7/16/12
to scite-interest
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
Date: 2012年6月4日(星期一) 上午10:30
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-i...@googlegroups.com.
To unsubscribe from this group, send email to scite-interes...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.

Neil Hodgson

unread,
Jul 17, 2012, 6:01:14 AM7/17/12
to scite-i...@googlegroups.com
s andf:

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)")

   That could be a '\' quoting issue.

   Neil

Reply all
Reply to author
Forward
0 new messages