Hello,
Is it possible to check if CopyFile>[file] process is ready?
thnx and best regards,
wil
wait for ready CopyFile process
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
You don't need to. CopyFile will not return until the process is completed.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Hello Marcus,
Thank you for your answer.
You are right and i should have known this with a simple test :
Best regards,
wil
Thank you for your answer.
You are right and i should have known this with a simple test :
Code: Select all
let>x=0
let>y=
Repeat>x
let>x=x+1
ConCat>y,%x%%CRLF%
Until>x=10000
//delete output files first
DeleteFile>%CWD%\10000_lines.txt
DeleteFile>%CWD%\10000_lines_copy.txt
//write 10000 lines to CWD
WriteLn>%CWD%\10000_lines.txt,result,%y%
CopyFile>%CWD%\10000_lines.txt,%CWD%\10000_lines_copy.txt
ReadFile>%CWD%\10000_lines_copy.txt,testvar
//next writelines from testvar to output file
message>testvar
wil