Jump to content
Sign in to follow this  
comp

How FileCopy is actually executed

Recommended Posts

comp

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

Share this post


Link to post
Share on other sites
comp

CopyFile() is used internally.

Internally how? I'm sorry I'm not exactly sure what you mean by that

Share this post


Link to post
Share on other sites
PsaltyDS

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.

:blink:


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

Share this post


Link to post
Share on other sites
Jos

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 :blink:

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
comp

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 :blink:

Got it. Thanks guys that really helped

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.