Modify a line in a text file
Posted: Thu Dec 22, 2016 1:29 pm
I am creating a project to upload a file from our GoAnywhere server to an AS400 using the IBM iAccess client. As I understand it, in order to do this from a batch file you have to have a DTT file that specifies a number of parameters, including the name of the file to upload. i'm wondering if GoAnywhere has the ability to do this. Basically:
1.) Look through a given text file until you see the line that starts with "PCFile="
2.) Replace everything after the equals with a path and filename of my choosing
I then use this file to tell the client what to upload.
This is the first time I've had to do this, so my understanding of the process may be flawed :)
1.) Look through a given text file until you see the line that starts with "PCFile="
2.) Replace everything after the equals with a path and filename of my choosing
I then use this file to tell the client what to upload.
This is the first time I've had to do this, so my understanding of the process may be flawed :)