comp Posted July 9, 2010 Share Posted July 9, 2010 Hey, I'm working on a script that searches, recursively, through a directory tree looking for specific file types. It then copies those file with the given type to a different folder to zip the up. However, we have some very stringent rules on the software that we use at where I work, and I need to know how the FileCopy function actually works. Is it translated by the compiler to native Windows commands? Thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted July 9, 2010 Developers Share Posted July 9, 2010 CopyFile() is used internally. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
comp Posted July 9, 2010 Author Share Posted July 9, 2010 CopyFile() is used internally.Internally how? I'm sorry I'm not exactly sure what you mean by that Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 9, 2010 Share Posted July 9, 2010 AutoIt is an interpreted scripting language. The native AutoIt function FileCopy() in a script is parsed at run time by the AutoIt Interpreter binary, which is a compiled C/C++ program. The "compiler" only packs the script text (with optional obfusctation/compression/encryption) along with the interpreter binary into a single file. This is about the same a you get with Perl2Exe for "compiling" Perl scripts. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Developers Jos Posted July 9, 2010 Developers Share Posted July 9, 2010 (edited) AutoIt3 is a interpreter so the AutoIt3 program reads your source and executes internal commands/fucntions. This kernel is written in C++ and the command used in for the FileCopy() command is copyfile() from Kernel32.dll. Jos Edited July 9, 2010 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
comp Posted July 9, 2010 Author Share Posted July 9, 2010 AutoIt3 is a interpreter so the AutoIt3 program reads your source and executes internal commands/fucntions.This kernel is written in C++ and the command used in for the FileCopy() command is copyfile() from Kernel32.dll.Jos Got it. Thanks guys that really helped Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now