Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...A lot of the information I've found at this site would've taken me forever if I'd have attempted to research it on my own. Thanks again."

Geography

Where in the world do Tek-Tips members come from?
tasminracer (IS/IT--Management)
26 Jan 06 4:48
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
wolluf (TechnicalUser)
26 Jan 06 19:50
How about something like http://www.orbit.org/replace/ (bit over the top perhaps - but it should do what you want and it you can run it in batch mode).

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close