Jump to content

Deleting -then-Creating a Folder


 Share

Go to solution Solved by Andreik,

Recommended Posts

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.

Link to comment
Share on other sites

  • Solution

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.

When the words fail... music speaks.

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...