DOS command to find a value and replace with another value in a file

210 pts.
Tags:
DOS command
DOS command to find a value and replace with another value in a file.Please help

Software/Hardware used:
Windows

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    The DOS EDIT command includes a find/replace function, but I suspect that that's not what you're after. Can you give a little more detail about what you need to accomplish? It might also be helpful if you explain why it needs to be done with DOS. -- Tom
    125,585 pointsBadges:
    report
  • senmalar
    Hi TomLiotta,Thanks for the reply.Actually I have a text file.In that text file,I need to replace a constant (010000) with another constant  value (d00000).I need to make this commands in .bat format and schedule in server.Thanks
    210 pointsBadges:
    report
  • TomLiotta
    I need to make this commands in .bat format...   Now the question becomes why does it have to be .BAT format?   That is, why do you care how it's done? Why not use VBscript or Jscript or any number of possible alternatives? It's possible it could be done with DOS in a .BAT file, but I don't know how. It'll be interesting if someone has an answer.   Tom
    125,585 pointsBadges:
    report
  • carlosdl
    A VBscript could be called from the .BAT if necessary, but I agree: why ?
    70,190 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following