Jump to content

Deleting -then-Creating a Folder


Go to solution Solved by Andreik,

Recommended Posts

Posted

Good day,

It is necessary/required to have a pause between a folder/file deletion and a folder copy process? For example:

FileDelete("G:\Session_Master\Shows\Type_1\*.*")
Sleep(500)
DirCopy("E:\Master_Backup\Type_1\session_name\Sessions", "G:\Session_Master\Sets\Intro_Outro", $FC_OVERWRITE)

As I really am not sure what to look for in the HelpFile, I thought that it might be appropriate to ask here in the Forum...

It would be helpful to know if a process must first complete before,,. shall we say, "move on".

Thank you for any assistance that one may provide.

  • Solution
Posted

Code is executed line by line and when the execution is complete will move to next line. This is the default behavior. Exception are functions that might take some time to complete, like ShellExecute(), Run(), ProcessClose(), etc. But these function have also versions that will wait for execution to complete: ShellExecuteWait(), RunWait(), ProcessWaitClose(), etc. In your specific case there is no need to wait.

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
  • Recently Browsing   0 members

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