Search found 3 matches

by miltonsnider
31 Mar 2010 12:25
Forum: DOS Batch Forum
Topic: replacing text
Replies: 4
Views: 7005

Re: replacing text

thank you very much. All I needed was %~n0
by miltonsnider
30 Mar 2010 12:35
Forum: DOS Batch Forum
Topic: replacing text
Replies: 4
Views: 7005

Re: replacing text

Thanks for your reply. I want to manipulate the text associated with the file name. Here is the entire bat file. I would like to replace the .bat in the filename string with nothing so that I can use it later in the bat file. I have many bat files and rather than recoding everytime I create a new ba...
by miltonsnider
29 Mar 2010 13:03
Forum: DOS Batch Forum
Topic: replacing text
Replies: 4
Views: 7005

replacing text

I would like to replace the .bat from test.bat with nothing I tried: set mystr =test.bat:bat % but nothing is replaced. I am using windows 7 64bit. Any help is appreciated. What I am trying to do is take the %0 and remove the .bat from all my .bat files so everything is not hardcoded. regards Milton