mr-es335 Posted October 22, 2023 Share Posted October 22, 2023 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. mr-es335 Sentinel Music Studios Link to comment Share on other sites More sharing options...
Solution Andreik Posted October 23, 2023 Solution Share Posted October 23, 2023 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. mr-es335 1 When the words fail... music speaks. Link to comment Share on other sites More sharing options...
mr-es335 Posted October 23, 2023 Author Share Posted October 23, 2023 Andriek, 'Thought-so...just wanted to ensure that i was on the right track. Thank you so very much for your assistance! Appreciated! mr-es335 Sentinel Music Studios 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