Jump to content

find literals and replace them on cmd file


lesterhung

Recommended Posts

hey all

i was wonder how can i find a certain literal in a cmd file and replace it with other literals within the same place. i would like to know the windows command line code for it, so i can put it in another batch file to perform it automatically.

Example input cmd file that i use for silent install with windows:

ECHO. Please wait...

start /wait %CDROM%\Install\

what i want to do is to replace the literal "%CDROM%" with ".\"

Example 2

bunch of words here

and more words here

i want to replace the literal "and" with "other"

i don't know if i make myself clear or not.

thanx

Edited by lesterhung
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...