Link to home
Start Free TrialLog in
Avatar of Information Services
Information ServicesFlag for United States of America

asked on

Checking for object lock

I am executing some C# code to initiate the creation of a file on our host system (AS/400). Once the file has been created on the AS/400, the AS/400 "pushes" the file over to the Windows server where my C# code is running.
I need to be able to wait until the file is completely over to the Windows server from the AS/400 host before exiting the thread. I would like to set up a while loop to check to see if the object exists and if it is locked. If it does exist and it's not locked, then I should be able to assume it has arrived in the folder on my Windows Server.
Any help would be greatly appreciated!
ASKER CERTIFIED SOLUTION
Avatar of Michael Fowler
Michael Fowler
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial