Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: REACT 2 Released (Read 1281529 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

REACT 2 Released

Reply #1025
If you need to use iTunes AAC, you could just split the wav image into multiple wav files, and then encode them one-at-a-time much like the TAK processing does. No piped input required.

Though I don't fully comprehend the problem at hand, so maybe this isn't a very useful suggestion.

In my images.cfg, I added something like this:

Code: [Select]
IF NOT @iTunesAAC@==1 GOTO end_iTunes_aac_tracks
    SET dest="@TrackDir_AAC@%trackDir%"
    IF NOT EXIST %dest% MKDIR %dest%
    PUSHD %dest%
        IF @various@==1 SET VA_tag=-meta-user:$qAlbum Artist$q=$q@VA@$q
        IF %embed_cover%==1 SET Cover_tag=r $q@cover@$q
        @tools@\acdir.exe --overwrite --output "%TrackName%.wav" --extract "@sourcecuesheet@"
        @tools@\acdir.exe --exec "TITLE $n/$N aac $#T && @tools@\iTunesEncode.exe @Opt_iTunesAac@ %Disc_iTunesAAC_acdir% -e $qAAC Encoder$q %Cover_Tag% -x @various@ -a $#a -l $#T -n $n -m $N -t $#t -y $q@year@$q -g $q@genre@$q -c $q@comment@$q -i $q%TrackName%.wav$q -o $q%TrackName%.m4a$q && IF EXIST $q@tools@\NeroAacTag.exe$q @tools@\Neroaactag.exe $q%TrackName%.m4a$q %VA_tag% %Discname_iTunesAAC_acdir% -meta-user:encoded-by=$q%UserName%$q -meta-user:Encoding=$qiTunesEncode/iTunes @Ver_iTunesAac@ @Opt_iTunesAac@$q && DEL $q%TrackName%.wav$q" "@sourcecuesheet@"
        IF @ApplyAlbumGain@==1 @tools@\aacgain.exe %ApplyAG_AacGain% *.m4a > gainlog.txt
    POPD
    GOTO end_nero_aac_tracks
:end_iTunes_aac_tracks


It's late and I might have missed a few things, but I tried to hurriedly take out code that is specific to my custom configs/ini. But you should get the concept. I use NeroAacTag to add some additional tags that iTunesEncode doesn't let you add, but they're not important and get skipped if NeroAacTag isn't found. oh well.
It's been tested lightly, but not extensively. Also note that I use a lot of crazy variables not present in standard REACT, such as %log% (use @eaclog@), %cue% (use $albumfile$.[mg].cue) and some things like %have_log%, @makem3u_aac@ ... etc etc etc. But the core concept should be the same.

REACT 2 Released

Reply #1026
Code: [Select]
IF NOT @iTunesAAC@==1 GOTO end_iTunes_aac_tracks
    SET dest="@TrackDir_AAC@%trackDir%"
    IF NOT EXIST %dest% MKDIR %dest%
    PUSHD %dest%
        IF @various@==1 SET VA_tag=-meta-user:$qAlbum Artist$q=$q@VA@$q
        IF %embed_cover%==1 SET Cover_tag=r $q@cover@$q
        @tools@\acdir.exe --overwrite --output "%TrackName%.wav" --extract "@sourcecuesheet@"
        @tools@\acdir.exe --exec "TITLE $n/$N aac $#T && @tools@\iTunesEncode.exe @Opt_iTunesAac@ %Disc_iTunesAAC_acdir% -e $qAAC Encoder$q %Cover_Tag% -x @various@ -a $#a -l $#T -n $n -m $N -t $#t -y $q@year@$q -g $q@genre@$q -c $q@comment@$q -i $q%TrackName%.wav$q -o $q%TrackName%.m4a$q && IF EXIST $q@tools@\NeroAacTag.exe$q @tools@\Neroaactag.exe $q%TrackName%.m4a$q %VA_tag% %Discname_iTunesAAC_acdir% -meta-user:encoded-by=$q%UserName%$q -meta-user:Encoding=$qiTunesEncode/iTunes @Ver_iTunesAac@ @Opt_iTunesAac@$q && DEL $q%TrackName%.wav$q" "@sourcecuesheet@"
        IF @ApplyAlbumGain@==1 @tools@\aacgain.exe %ApplyAG_AacGain% *.m4a > gainlog.txt
    POPD
    GOTO end_nero_aac_tracks
:end_iTunes_aac_tracks

Just tried this out and no dice. The WAVs were extracted however no M4As created.

I'll try this again after work.

-

I do not see how this can work. You are using ACDIR on individual files but import the same source cuesheet. Wouldn't that source CUE point towards the WAV-image?
OP can't edit initial post when a solution is determined  :'-(

REACT 2 Released

Reply #1027
Can I get something cleared up in my mind?  Are you using GSAR in place of SED because SED does not handle certain characters well ('&' now that it can be included in track titles for example)?

REACT 2 Released

Reply #1028
Yes.

Although SED is far more flexible than GSAR, it's complexity is not required for the solutions suggested so far, including the cuesheet amending that we worked on.

As SED could potentially cause problems with a few characters it seems safer to change to GSAR, which will do the job just as well, but should not be affected (so much*) by these issues. 

I suggested SED when you first asked about editing the cuesheet, as it was the only command line F'n'R tool that I knew of.  Until yesterday, when nago highlighted that ampersands could cause an issue with SED, I was blissfully unaware.  I Googled about and came across GSAR as an alternative.  As it was another GNU tool - which I rate - I stopped searching any further; however, it is possible that there are even better options (that perhaps have some of the benefits of SED that the simplistic GSAR does not) out there.

* Akkurat is discussing the necessity to escape double quotes and colons for GSAR strings.  As neither can be used in filenames, these are not an issue for the cuesheet filename amending.

Edit: BTW,  I would suggest, when the wiki article is updated, that the SED-specific text is kept, under a "Using SED" subtitle, with the GSAR text added above that section, under a "Using GSAR" subtitle.  The opening passage of the article should then highlight that the GSAR approach is recommended.  I would like to keep the SED text for reference, and it may still be useful to some people.
I'm on a horse.

REACT 2 Released

Reply #1029
Edit: BTW, I would suggest, when the wiki article is  updated, that the SED-specific text is kept, under a "Using SED" subtitle, with the GSAR text added above that section, under a "Using GSAR" subtitle.  The opening passage of the article should then highlight that the GSAR approach is recommended.  I would like to keep the SED text for reference, and it may still be useful to some people.
I have made some amendments myself.

But in fact we don't need that in "Amending Cuesheet..." because we can shorten the substitution to:

Code: [Select]
GSAR.EXE "-s@basename@.wav" "-r%TrackName%.wv"
I believe that I had the additional text to ensure that the right part was being acted upon; however, it should be reasonably safe to cut the text down to the above.
While updating the wiki I have realised why I may have used the full text.  If updating an MP3 cuesheet it is necessary to amend the file type from WAVE to MP3, as so:

Code: [Select]
ECHO @tools@\GSAR.EXE "-s@basename@.wav""" WAVE" "-r%TrackName%.mp3""" MP3" -o %trackCueFile%>>update-cuesheet.bat
I'm on a horse.

REACT 2 Released

Reply #1030
I think I was probably confused as I didn't see it as being a very useful feature, and therefore not a showstopper for GSAR.  I'm glad to hear that it's not to do with the core functionality anyway.  I think GSAR could be useful for some other actions in REACT configs.

I'm currently discussing the problem with the author. If the thing gets resolved, should we update the amending cuesheet wiki to use that feature? IMHO it's nicer way to do things but it's obsolete since there's already a working solution.

Can I get something cleared up in my mind?  Are you using GSAR in place of SED because SED does not handle certain characters well ('&' now that it can be included in track titles for example)?
Yes.
...
As SED could potentially cause problems with a few characters it seems safer to change to GSAR, which will do the job just as well, but should not be affected (so much*) by these issues. 
...
nago highlighted that ampersands could cause an issue with SED

It's more than that ampersand character. Mainly the opening square bracket ( [ ) + other characters which have special meanings in the regex (basic/extended). The square bracket is used in ImageNaming INI variable AND also in the various artists filename scheme.

Edit: BTW,  I would suggest, when the wiki article is updated, that the SED-specific text is kept, under a "Using SED" subtitle, with the GSAR text added above that section, under a "Using GSAR" subtitle.  The opening passage of the article should then highlight that the GSAR approach is recommended.  I would like to keep the SED text for reference, and it may still be useful to some people.

I have to disagree slightly. The SED instructions should be removed since it's very risky to use it now without char escapes (or instructions how to do it). Maybe reference to SED should be left but without any code/instructions to use it AND a warning for the users who are currently using SED...?

Also I would recommend every SED user to check their cuefiles because there's a very high chance that your cuefiles are corrupted!!

REACT 2 Released

Reply #1031
I'm currently discussing the problem with the author. If the thing gets resolved, should we update the amending cuesheet wiki to use that feature? IMHO it's nicer way to do things but it's obsolete since there's already a working solution.
Edit: Do I take it from your enthusiasm for this approach that you can have multiple occurences of the -s and -r switches in a file?  If not then I am still finding it difficult to see the appeal.

It's more than that ampersand character. Mainly the opening square bracket ( [ ) + other characters which have special meanings in the regex (basic/extended). The square bracket is used in ImageNaming INI variable AND also in the various artists filename scheme.
The ampersand is the only character that will cause a problem in the right side of the expression, and that was the character that nago raised to make me aware of the issue.

Your work on escaping for GSAR and SED would certainly be a useful addition to the wiki article.

I have to disagree slightly. The SED instructions should be removed since it's very risky to use it now without char escapes (or instructions how to do it). Maybe reference to SED should be left but without any code/instructions to use it AND a warning for the users who are currently using SED...?
Then I guess we'll have to agree to disagree.

Also I would recommend every SED user to check their cuefiles because there's a very high chance that your cuefiles are corrupted!!
lipidicman should be able to respond well to this: presumably he must have many cuesheets amended using the SED technique.  Perhaps he would be so good as to check a selection, or even upload a zip file with a load of  cuesheets for testing.

Edit: I'm not really sure what you mean by corrupted.  I can see that converting "/r/n" (CRLF) to "/n" (LF/newline) is a change, but any text editor worth its salt can open UNIX-style text files, and foobar has no problem with them.  That just leaves a handful of cuesheets that may be screwed due to unescaped characters on the left hand side (@basename@), or the ampersand on the right (%TrackName%).

I agree that it would be better for none of this to occur, but stating that "there's a very high chance that your cuefiles are corrupted!!" is a little melodramatic don't you think?
I'm on a horse.

REACT 2 Released

Reply #1032
I can see that converting "/r/n" (CRLF) to "/n" (LF/newline) is a change, but any text editor worth its salt can open UNIX-style text files, and foobar has no problem with them.
The good news of course is that GSAR has the ability to convert UNIX ASCII text files to DOS ASCII text files.

Code: [Select]
GSAR -ud -o *.cue
I'm on a horse.

 

REACT 2 Released

Reply #1033
Edit: Do I take it from your enthusiasm for this approach that you can have multiple occurences of the -s and -r switches in a file?  If not then I am still finding it difficult to see the appeal.

Yes, just like the SED works: one txt file and one gsar command to run all... IF I'm not mistaken.

The ampersand is the only character that will cause a problem in the right side of the expression, and that was the character that nago raised to make me aware of the issue.

I don't know why you're so defensive. If you read my comment again you should see that I was talking about the whole sed command, not just the "right side". My motive was merely to pass on information to this subject which was not discussed here before. Nothing personal.

Then I guess we'll have to agree to disagree.

So if I change the wiki, you would revert it back?

Also I would recommend every SED user to check their cuefiles because there's a very high chance that your cuefiles are corrupted!!
Edit: I'm not really sure what you mean by corrupted.  I can see that converting "/r/n" (CRLF) to "/n" (LF/newline) is a change, but any text editor worth its salt can open UNIX-style text files, and foobar has no problem with them.  That just leaves a handful of cuesheets that may be screwed due to unescaped characters on the left hand side (@basename@), or the ampersand on the right (%TrackName%).

I agree that it would be better for none of this to occur, but stating that "there's a very high chance that your cuefiles are corrupted!!" is a little melodramatic don't you think?

No, I don't think so. Why do you like to play down this issue? And forget about the CRLF issue, that was not in my mind when I wrote my warning.

My (currently incomplete) collection produces:
Code: [Select]
dir /S *^&*.*    = 146
dir /S *.mp3     = 2731
146 * 100 / 2731 = ~5,35 %

Of course this doesn't count total possible corrupted cuefiles because there can be several filenames w/ ampersand in the filename per directory/album/cuefile. But still. Usually fail rates are counted in "nines": 99,99...% if that kind of thinking/measuring can be adjusted to this issue. Also these figures from my collection lacks the various artists filename scheme square brackets because when I ripped these mp3's, I was unaware of REACT.

EDIT: these figures doesn't count the other possible problems caused by unescaped regex chars in the "left side".

I can see that converting "/r/n" (CRLF) to "/n" (LF/newline) is a change, but any text editor worth its salt can open UNIX-style text files, and foobar has no problem with them.
The good news of course is that GSAR has the ability to convert UNIX ASCII text files to DOS ASCII text files.
Code: [Select]
GSAR -ud -o *.cue


Yes but it's not needed because gsar doesn't change the "newlines".

REACT 2 Released

Reply #1034
Yes, just like the SED works: one txt file and one gsar command to run all... IF I'm not mistaken.
That would be good.  If that is the case I would probably be up for amending the code.

I don't know why you're so defensive. If you read my comment again you should see that I was talking about the whole sed command, not just the "right side". My motive was merely to pass on information to this subject which was not discussed here before. Nothing personal.
I know.  And I in turn was just pointing out that the reason I only mentioned the ampersand was that was the character that initially highlighted the issue to me.  I also pointed out that it is the only character that will cause an issue on the RHS.  It's all about informing the reader.  You had previously stated that you had discovered other characters in testing (post #1009) - it didn't need re-stating - just as I shouldn't have to re-state my reasoning.

So if I change the wiki, you would revert it back?
Who knows.  Perhaps we should let some other users give their opinion.

I see no reason to totally remove the text, if we keep the opening text that explains that GSAR is the recomended option, and hopefully expand it, with your help, to explicitly state why SED is not the preferred option.  Let the user decide which they use, with all the facts in the open.  Why not keep it?

No, I don't think so. Why do you like to play down this issue?
Hmm.  Seeing as I am the one who posted a resolve to the issue, hours within finding out about it, I hardly think that it is fair to say that I am not addressing it.  I would have said that I am the furthest person that you can accuse of that - at least I'm posting solutions.

Code: [Select]
146 * 100 / 2731 = ~5,35 %

Of course this doesn't count total possible corrupted cuefiles because there can be several filenames w/ ampersand in the filename per directory/album/cuefile. But still. Usually fail rates are counted in "nines": 99,99...% if that kind of thinking/measuring can be adjusted to this issue.
I agree that 5% is a poor fail rate; however, as you say, if the ampersand is in the artist or album title, the actual number of cuesheets affected could be a lot smaller percentage.

Yes but it's not needed because gsar doesn't change the "newlines".
However it may be useful to fix all those cuesheets corrupted by SED.
I'm on a horse.

REACT 2 Released

Reply #1035
Oh, I forgot about escaping characters on the LHS.

I believe you can use \Q@basename@\E to solve this issue just fine. Quoting the RHS in SED still remains an issue though.

Still, if you intend to keep the sed instructions on the wiki, this could make a useful amendment.

REACT 2 Released

Reply #1036
A prime example of why the SED text should be kept.  None of us are SED experts, and the code can always be improved.

Thanks for the input nago.  I'll have to read up on those.

Escaping the ampersand on the right hand side shouldn't really be too much of an issue.  I think something simple like:

Code: [Select]
SET sedTrackName=%TrackName:&=\&%
ECHO s/\Q@basename@\E\.wav"/%sedTrackName%\.wv/>>sedlist.txt
I'm on a horse.

REACT 2 Released

Reply #1037
Just tried this out and no dice. The WAVs were extracted however no M4As created.

I'll try this again after work.

-

I do not see how this can work. You are using ACDIR on individual files but import the same source cuesheet. Wouldn't that source CUE point towards the WAV-image?


I forgot to mention; I use a %Disc_iTunesAAC_acdir% variable in the encoding string, which gives relevant disc information if need be. The lack of this variable being set could cause DOS to crash, and not encode the files.

Quote
SET Disc_iTunesAac_acdir=-j @discnumber@ -k @totaldiscs@


At the top where discname stuff is set.

REACT 2 Released

Reply #1038
I believe you can use \Q@basename@\E to solve this issue just fine. Quoting the RHS in SED still remains an issue though.
I've tried this, with no success.  Is it possible that these is a Perl-only switches?  I seem to remember seeing that there are different versions of SED; maybe I need an alternative version?  Maybe I'm just being a dimwit.
I'm on a horse.

REACT 2 Released

Reply #1039
I believe you can use \Q@basename@\E to solve this issue just fine. Quoting the RHS in SED still remains an issue though.
I've tried this, with no success.  Is it possible that these is a Perl-only switches?  I seem to remember seeing that there are different versions of SED; maybe I need an alternative version?  Maybe I'm just being a dimwit.


Maybe I'm the dimwit? I seem to recall using it with some success, but maybe it was a fluke o_O
Or my memory has gone...
Oh well!

The only rational solution is to change my name and disappear from the internet.

Goodbye!

REACT 2 Released

Reply #1040
Oh, I forgot about escaping characters on the LHS.

I believe you can use \Q@basename@\E to solve this issue just fine. Quoting the RHS in SED still remains an issue though.

Where did you find that information? Could you post a link to it? Thanks.

EDIT: oops, I saw your last post too late... still the link would be interesting.

And if you're keen on keeping the SED in the wiki as a tool which can be used to other things, may I suggest that you take into consideration the other (maybe rare but still) "right side" can-be-a-problem-things? http://sed.sourceforge.net/sedfaq3.html#s3.1.2

REACT 2 Released

Reply #1041
The only rational solution is to change my name and disappear from the internet.
  You can run, but you can't hide.

Goodness: "Is it possible that these is a Perl-only switches?"?  I think we've found our dimwit.
I'm on a horse.

REACT 2 Released

Reply #1042
And if you're keen on keeping the SED in the wiki as a tool which can be used to other things, may I suggest that you take into consideration the other (maybe rare but still) "right side" can-be-a-problem-things? http://sed.sourceforge.net/sedfaq3.html#s3.1.2
I thnk this covers it:

Code: [Select]
SET sedTrackName=%TrackName:\=\\%
SET sedTrackName=%sedTrackName:&=\&%
ECHO s/@basename@\.wav"/%sedTrackName%\.wv/>>sedlist.txt
I'm on a horse.

REACT 2 Released

Reply #1043
I'm not going to answer to the other points since those again turned into a stupid time wasting fight (more or less) about who said what and why, who was right and wrong, who was fast posting solutions and who was not because more thorough testing, yadayada, blahblah, and so on. (I know that this is a rant but I needed to get this out of the system.. better this than continuing the seemingly never-ending bickering. I do apologize for participating in such a conversation again.) If there's a topic somebody would like me to answer, please ask because I'm going to fade to the background again, thanks.

Yes, just like the SED works: one txt file and one gsar command to run all... IF I'm not mistaken.
That would be good.  If that is the case I would probably be up for amending the code.

No go. This is what the author wrote: "When gsar became a win32 app the @ support went away. It was only supported using the Zortech compiler.". The following explains more why I thought that it was a bug: "I thought I had removed the @ from the text files but it seems as if this was not the case. Anyway take it from me that @ is long gone.". And why it was removed: "The @ is not really needed anymore on Win32 due to the length of the command line.". So the current solution is the best we can do with GSAR.

REACT 2 Released

Reply #1044
If there's a topic somebody would like me to answer, please ask because I'm going to fade to the background again, thanks.
Will you be sharing your work with regard to escaping characters for SED?

No go. This is what the author wrote: "When gsar became a win32 app the @ support went away. It was only supported using the Zortech compiler.". The following explains more why I thought that it was a bug: "I thought I had removed the @ from the text files but it seems as if this was not the case. Anyway take it from me that @ is long gone.". And why it was removed: "The @ is not really needed anymore on Win32 due to the length of the command line.". So the current solution is the best we can do with GSAR.
That is a shame, it would have been tidier.  Thanks for the info.
I'm on a horse.

REACT 2 Released

Reply #1045
Will you be sharing your work with regard to escaping characters for SED?

Unfortunately my work is incomplete and rather in a such state that I would have to clean up and make it clearer for others to read.. takes time and since I'm not going to use SED and I still would like to remove SED from the wiki, I'd like to save that time which I see useless. But you never know, now we have to concentrate on the problem with GSAR (check bottom of this post).

Here's a new point of view to the SED & GSAR (if we end up using it) wiki issue: what is the user motive to go to "Amending Cuesheet..." wiki page? What do they want? They want to amend cuesheet file references! I bet that they don't care how it's done and with what new tool.. as long as it's a working solution. Why make it even more difficult with providing options which have the SAME end situation; amended cuesheet file references? I bet that the already steep learning curve to use REACT is holding back the popularity of this program.

No go. This is what the author wrote: "When gsar became a win32 app the @ support went away. It was only supported using the Zortech compiler.". The following explains more why I thought that it was a bug: "I thought I had removed the @ from the text files but it seems as if this was not the case. Anyway take it from me that @ is long gone.". And why it was removed: "The @ is not really needed anymore on Win32 due to the length of the command line.". So the current solution is the best we can do with GSAR.
That is a shame, it would have been tidier.  Thanks for the info.

Well, it might have been the solution we NEED if we are going to use GSAR.

Houston, we have a problem.

update-cuesheet.bat:
Code: [Select]
gsar.exe "-sAAA é^%&--x'[]!äöå...WAV" "-rAAA é^%&---'[]-äöå...FLAC" -o "test.cue"

Executing (execution to us):
Code: [Select]
C:\>CALL update-cuesheet.bat

C:\>gsar.exe "-sAAA Ú^&---'[]-õ÷Õ...FLAC" -o "test.cue"

gsar: command error, the 'o' or 'f' option is meaningless in 'search' mode

When I copy&paste the code from the update-cuesheet.bat file to the command prompt and push ENTER, it works.

Two things to notice:

1. all chars between % chars are removed (+ % chars)
2. pay attention to "special" chars (é^%&--x'[]!äöå <-----> Ú^&---'[]-õ÷Õ)

The % char problem is easily avoided by escaping % with %%. But what to do with the changing chars?

I have the feeling that the dropped out @ functionality would have worked perfectly to us.

So is it a time to try out a new tool?

REACT 2 Released

Reply #1046
Trust you, eh?

Hmm..  does this mean that GSAR can't handle anything more than basic ANSI?  I must admit that I get very confused about codepages etc., as I am a simple English speaker who listens to UK/US music on the whole (Air is one exception that I can think of).  It appers to me to be a codepage issue of some sort or another, but that's as far as I know.

As you say, the % issue isn't a huge problem - something I should have thought about before - but something that we can deal with.

Well, in answer to your question: I'm fine about switching to another app, as long as it is free, and does the job!  Any suggestions?
I'm on a horse.

REACT 2 Released

Reply #1047
Trust you, eh?

Hmm..  does this mean that GSAR can't handle anything more than basic ANSI?  I must admit that I get very confused about codepages etc., as I am a simple English speaker who listens to UK/US music on the whole (Air is one exception that I can think of).  It appers to me to be a codepage issue of some sort or another, but that's as far as I know.

As you say, the % issue isn't a huge problem - something I should have thought about before - but something that we can deal with.

Well, in answer to your question: I'm fine about switching to another app, as long as it is free, and does the job!  Any suggestions?


Try copying the Codepage Change command into the bat file you are calling-- the one present at the top of both images-cfg and tracks-cfg. Tycho had a reason for putting it in there, it might benefit your child process.

Just a thought!

REACT 2 Released

Reply #1048
Try copying the Codepage Change command into the bat file you are calling-- the one present at the top of both images-cfg and tracks-cfg. Tycho had a reason for putting it in there, it might benefit your child process.

Just a thought!

And what a thought it was, it worked! I'm too shit with codepages, character sets, etc. and I don't understand how this thing works but it works. It's really strange; the command which is run contains wrong chars but it still changes them to correct ones in the output file. Go figure.

BUT, again, I spoke too hastily, I don't know a way to escape % chars in batch variables. Now I remember that I have tried this many times with no luck (last I tried it with the playlist generation problem which I solved in other way (look in the Creating A Playlist wiki)). In fact, with little googling, I think it's impossible.. at least with the following normal escape solution:
Code: [Select]
SET test=%test:a=ab%

Any hints to solve this? I wonder what IS the next problem after we solve this one.

REACT 2 Released

Reply #1049
These problems have made me consider writing a console app (unfortunately it would .NET as I'm not up to it in C) which sole purpose is to take a string and escape it using a specified method.

A more flexible alternative, but possibly more effort for the user, may be to use a WSH script (VBScript for me), run using CSCRIPT.

Either way though, it's just confusing the solution further and further, although it would hopefully result in a complete working solution.

Edit: Hang on.  If the % is an issue for GSAR, wouldn't it be an issue for every app used in the config?  Is there not already something in place in the code that deals with this?  I'm off to bed, so can't test now.

Edit 2: Just checked the source.  Most tokens are replaced using fStringReplaceForDOS(), which escapes %.  Can someone test with REACT.  G'night.
I'm on a horse.