Page 1 of 1

Copy self to other locations

Posted: Sun Jul 26, 2015 2:10 pm
by carelvos
I'm trying to copy the current stack running to another location:

I've tried the following:

revCopyFile the sourceFile of this stack, "c:/test"

and

revCopyFile the sourceFile of this card, "c:/test"

but it doesn't work.

I tried it from withing Livecode and from a standalone.

Please help...

Thanks,

Carel

Re: Copy self to other locations

Posted: Sun Jul 26, 2015 2:15 pm
by Klaus
Hi Carel,

do this:
...
put the filename of this stack into tSourceFile
revcopyfile tSourceFile, "c:/test"
...
Use "effective filename" if it is a substack!


Best

Klaus

Re: Copy self to other locations

Posted: Sun Jul 26, 2015 2:19 pm
by carelvos
Never mind, I figured it out:

get the effective fileName of this stack
put it into FileToCopy
revCopyFile FileToCopy, "c:/test"

Watch out Bill Gates, I'm becoming an expert at programming :lol: :lol:

Re: Copy self to other locations

Posted: Sun Jul 26, 2015 2:21 pm
by Klaus
Use my script and SAVE a complete line! :D