Hi All,
We have a process which updates a file and then ftp to remote location
. Currently we use a software 'Gentran '.
At times this file get hold by Gentran services and next run of
process, fail in reading/writing to this file.
Now the only option is to stop/start Gentran services and this will
release the lock on the file.

Is there any programming way to release the lock on a file after each
process.

Any help with related topics / links will be of great help

Thanks In Advance
WU

Release handle of a file by Bryan

Bryan
Thu Oct 23 17:51:57 CDT 2003

Have you tried fashioning your FTP procedure to make a
copy of the file, let Gentran FTP MOVE the file so it
deletes it's work-version of the file and then keep doing
this for each file you need to process?

If Gentran is not playing nice in the FSO you probably
need to either work-around your problem or see if you can
patch the FTP app (or find a more solid FTP ActiveX object
to do your transfer.)
BK
>-----Original Message-----
>Hi All,
> We have a process which updates a file and then ftp
to remote location
>.. Currently we use a software 'Gentran '.
> At times this file get hold by Gentran services and
next run of
>process, fail in reading/writing to this file.
> Now the only option is to stop/start Gentran
services and this will
>release the lock on the file.
>
> Is there any programming way to release the lock on a
file after each
>process.
>
> Any help with related topics / links will be of great
help
>
>Thanks In Advance
>WU
>
>
>.
>