Search found 4 matches

by Ktoeto
October 21st, 2005, 12:28 am
Forum: Scripts Discussion
Topic: How to copy a file or a folder ? :)
Replies: 2
Views: 9058

I've got a solution! My friend have written for me a function of copying folders :) If it is interesting for anybody, here it is: function my_copy_dir(dest) { var dest_obj = new Folder(dest); if(!dest_obj.exists) { dest_obj.create(); } var files = this.getFiles(); for(var i = 0;i<files.length;i++) {...
by Ktoeto
October 20th, 2005, 10:39 pm
Forum: Scripts Discussion
Topic: How to copy a file or a folder ? :)
Replies: 2
Views: 9058

How to copy a file or a folder ? :)

Hi all!
Is there some way to copy files and folders? My script has to copy files of various types and the only way I know is to create temporary .bat files with xcopy bla-bla, execute them and delete.
Standart method File(path).copy(target) doesn't work in my script, I don't know why...
Thanks.
by Ktoeto
October 13th, 2005, 10:10 pm
Forum: Scripts Discussion
Topic: how to terminate the script?
Replies: 3
Views: 9218

O, that's great! Simple and efficient. Thanks!
by Ktoeto
October 13th, 2005, 5:21 am
Forum: Scripts Discussion
Topic: how to terminate the script?
Replies: 3
Views: 9218

how to terminate the script?

Hi all!
I have a newbie's trouble... How can I code terminating of script when some conditions occur? Is there an analog of 'break;' in loops, but for the entire script?


Sorry for my English - it's not my native language...