1 Feb 2005 12:15
Re: Validating Text Strings & Isolating files with odd characters
On Mon, 31 Jan 2005 07:25:03 -0000, awnster wrote: > I am currently using Windows 2000 and have a batch job which backup > (copy) the text files in c:\stage to c:\backup and move the files > from c:\stage to c:\upload. What I would like to do is add the logic > to the batch script to do three things: Can you post the current batch file, and also provide some more detail about the following. > 1) Check the text files if it contain the letter "A" qualifier (3rd > character from the left in the example) in the HDR record (example: > HDR*A*ADDRESS*APPLICATION123456789). R is the third character from the left, above. * is the fouth from the left. > 2) Check for odd characters, for this example we can use the tilde > character "~". What do you mean by odd? 1,3,5,7,9? > 3) Move files that does not have the "A" qualifier or contain the > tilde character "~" to c:\error\errorlog.txt. Do these text files contain any characters that are not alphanumeric? -- -- Regards,(Continue reading)
RSS Feed