Jump to content

How FileCopy is actually executed


Recommended Posts

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

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
Link to comment
Share on other sites

  • Developers

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

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

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...