1.

Solve : find and replace batch file?..?

Answer»

Well I wanted to CREATE a batch file that would go through a text file and replace things. (aka convert)
For EXAMPLE, you find this in a text file:

D%o #$11
))>> $21
BUU

then you drop the text file on to the batch and it coverts it to this:

Lda #$11
Sta $21
Rts

so, is it possible? and what commands would i use?
A cross-assembler?

It's not the commands you need to worry about, it's putting them together in the right order.

Anyhow, we're always ready to help people with their projects, so let's see what you have already written.

If you actually want a complete batch file written for you, as a professional piece of work, my rates start at $50 per hour.


Quote from: Salmon Trout on August 23, 2009, 03:46:12 PM



If you actually want a complete batch file written for you, as a professional piece of work, my rates start at $50 per hour.



Either Salmon is joking or you should ignore him. We are all volunteers here meaning our help is 100% FREE$$$!Quote from: Helpmeh on August 23, 2009, 07:20:06 PM
Either Salmon is joking or you should ignore him. We are all volunteers here meaning our help is 100% FREE$$$!

I was being sarcastic; I have no intention of attempting to charge for any help I give on here (how would I collect?); I merely meant I would much rather see a project that someone has a problem with, and suggest a solution, than write a complex batch script from start to finish from a specification.


To the OP

You can read a text file line by line using FOR, you can split each line up with tokens and delimiters, and you can substitute one string in a line with another using the %string:abc=xyz% notation.
Quote from: Salmon Trout on August 24, 2009, 12:34:49 AM
I was being sarcastic; I have no intention of attempting to charge for any help I give on here (how would I collect?); I merely meant I would much rather see a project that someone has a problem with, and suggest a solution, than write a complex batch script from start to finish from a specification.

That seems more than fair to me too.I also would prefer that, but there are cases that

Person A tells Person B that he can do xyz with batch and learned it from here. Person B comes here and asks for a batchfile that can do as Person A mentioned.

And I've always learned by complete examples, picking them apart to figure them out, and ASK questions if I can't understand a piece of code. Fair enough, but I object to doing student's homework, or IT staff's PAID work, for them
Quote from: Salmon Trout on August 24, 2009, 05:05:05 AM
Fair enough, but I object to doing student's homework, or IT staff's paid work, for them

We're not allowed to help with homework (or is it They aren't allowed to ask questions regarding homework). Quote from: Helpmeh on August 24, 2009, 05:13:30 AM
We're not allowed to help with homework (or is it They aren't allowed to ask questions regarding homework).
we can help with homework, just not giving them FULL solution. Quote from: gh0std0g74 on August 28, 2009, 06:26:25 AM
we can help with homework, just not giving them FULL solution.
True. Pointing them in the right direction is allowed.


Discussion

No Comment Found