Search found 4 matches
- October 21st, 2005, 12:28 am
- Forum: Scripts Discussion
- Topic: How to copy a file or a folder ? :)
- Replies: 2
- Views: 10188
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++) {...
- October 20th, 2005, 10:39 pm
- Forum: Scripts Discussion
- Topic: How to copy a file or a folder ? :)
- Replies: 2
- Views: 10188
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.
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.
- October 13th, 2005, 10:10 pm
- Forum: Scripts Discussion
- Topic: how to terminate the script?
- Replies: 3
- Views: 12011
- October 13th, 2005, 5:21 am
- Forum: Scripts Discussion
- Topic: how to terminate the script?
- Replies: 3
- Views: 12011
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...
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...