Subject: | |
From: | |
Reply To: | |
Date: | Mon, 5 Nov 2001 16:45:58 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Didn't test it but doing "help replace" in ftp client says:
replace
Toggles the internal replace flag and the value of the environment
variable FTPREPLACE to either TRUE or FALSE. This flag specifies
the file placement policy during subsequent file transfers.
on - sets the internal replace flag and the value of the
FTPREPLACE CI environment variable to TRUE (this is the
default state). In this case, all file transfers will
unconditionally replace the target file.
off - sets the internal replace flag and the value of the
environment variable to FALSE. In this state, all file
transfers will be conditional predicated on user response
to replace the target file if it previously existed.
However, don't know how it will react in batch job...
Hope this will help !
--
==================================================
Denis St-Amand (Remove "removeit." from email address)
==================================================
"Wright, Dennis" <[log in to unmask]> wrote in message
news:9s6gmb02qu6@enews4.newsguy.com...
> Running FTP from the HP3000 , I need to create a file on a NT server IF
THE
> FILE DOES NOT EXIST otherwise end the FTP process. Using EXITONERROR and
LS
> I can exit if it is not there, but this is not what I want to do. I tried
> to use the Variable FTPLASTERR = -13 within an embedded IF statement but
can
> not seem to get that to work.
>
> If I exit when not finding the file, I can then check FTPLASTERR for -13
and
> then rerun another FTP process to SEND the file. Or we can set
security,on
> the server, so that the FTP user cannot overwrite the file if it exist.
Any
> other ideas?
>
> Dennis A. Wright
> <<...OLE_Obj...>>
> Information Systems Consultant
> [log in to unmask] <mailto:[log in to unmask]>
> (804) 354-3662
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|