On-rev Rename quotes work. Vars don't!

Rick Harrison harrison at all-auctions.com
Thu Jan 27 20:06:18 CST 2011


Hi Richard & Klaus,

I set the default folder to the correct path
before the rename statement.  I've checked it,
and it is correct.  I've also tried to fully qualify
the path name for both variables.  It still doesn't work.

Someone other than myself should try to reproduce
the error on On-Rev when they get the chance.  
For now the work around with the "Do" command is fine.

Thanks guys!

Rick

On Jan 27, 2011, at 5:35 PM, Richard Gaskin wrote:

> On 1/27/11 2:11 PM, Rick Harrison wrote:
>> Hi Richard,
>> 
>> The paths are valid.
>> 
>> The value of "the result" was "can't rename file"
>> 
>> SysError() was "2"
> 
> 2 = "file not found":
> <http://msdn.microsoft.com/en-us/library/ms681382%28v=vs.85%29.aspx>
> 
> Since you're using short paths, you might try checking that the default folder is what you'd expect it to be.
> 
> --
> Richard Gaskin
> Fourth World
> LiveCode training and consulting: http://www.fourthworld.com
> Webzine for LiveCode developers: http://www.LiveCodeJournal.com
> LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
> 
> _______________________________________________
> livecode-dev mailing list
> livecode-dev at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/livecode-dev






More information about the use-livecode mailing list