tasminracer
IS-IT--Management
Hi, I have a system that outputs files in the format
JOBAAnn1234-12^123456 with the last set of numberics being a phone number and hence vaiable length.
I need to do some processing on that file before it passes to the next system so Im using some batch files.
the first program is a for loop that reads the file names and passes them to the next program that does the work.
The trouble is when the variable is passed into the 2nd program it looses the ^ and becomes JOBAAnn1234-12123456 which obviously doesnt exist.
I've tested this by piping the passes filename into echo and it displays without the ^.
What i'd like to do is change the source filename to have a £ rather than the ^ ( i can control the output file name, and the £ works fine)
Process my file and then rename it replacing the £ with the ^.
Trouble is I cant seem to find a way to do this as part of a batch file. any ideas
cheers
Graham
JOBAAnn1234-12^123456 with the last set of numberics being a phone number and hence vaiable length.
I need to do some processing on that file before it passes to the next system so Im using some batch files.
the first program is a for loop that reads the file names and passes them to the next program that does the work.
The trouble is when the variable is passed into the 2nd program it looses the ^ and becomes JOBAAnn1234-12123456 which obviously doesnt exist.
I've tested this by piping the passes filename into echo and it displays without the ^.
What i'd like to do is change the source filename to have a £ rather than the ^ ( i can control the output file name, and the £ works fine)
Process my file and then rename it replacing the £ with the ^.
Trouble is I cant seem to find a way to do this as part of a batch file. any ideas
cheers
Graham