Help - Search - Members - Calendar
Full Version: REACT 2 Released
Hydrogenaudio Forums > Hydrogenaudio Forum > Validated News
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28
Akkurat
QUOTE(feelgood @ Jan 15 2008, 01:18) *
Just found that the latest Avast! Home scanner reports a trojan/virus in SS-modified react.exe file: Win32:Trojan-gen {UPX}. (http://www.synthetic-soul.co.uk/temp/REACT_2.0.ssb16n.zip)
A false positive? Avast! doesn't report anything malicious in the original react.exe file.

False positive. Here's the scan result by virusscan.jotti.org:

File: REACT.exe
Status: POSSIBLY INFECTED/MALWARE (Note: this file was only classified as malware by scanners known to generate more false positives than the average scanner. Do not consider these results definately accurate. Also, because of this, results of this scan will not be recorded in the database.)
MD5: 4db906bddccb0cd925306e252f746864
Packers detected: PE_PATCH.UPX, UPX
Bit9 reports: File not found

Scanner results
Scan taken on 14 Jan 2008 23:37:27 (GMT)
A-Squared Found nothing
AntiVir Found nothing
ArcaVir Found nothing
Avast Found Win32:Trojan-gen {UPX}
AVG Antivirus Found nothing
BitDefender Found nothing
ClamAV Found nothing
CPsecure Found nothing
Dr.Web Found nothing
F-Prot Antivirus Found nothing
F-Secure Anti-Virus Found nothing
Fortinet Found nothing
Ikarus Found nothing
Kaspersky Anti-Virus Found nothing
NOD32 Found nothing
Norman Virus Control Found nothing
Panda Antivirus Found nothing
Rising Antivirus Found nothing
Sophos Antivirus Found nothing
VirusBuster Found nothing
VBA32 Found nothing

QUOTE(feelgood @ Jan 15 2008, 01:18) *
First I rip the CD with EAC to a wav-image and then re-rip the wav file with React/Daemon-Tools to get a FLAC image-file and AAC track-files in two consecutive sessions (F4 and F10). This procedure is the fastest and most convinient to my knowledge. I tried to modify the ini and cfg-files to leave the temporary wav file, the cue file and the log file from a CD->FLAC-image conversion session intact, but it went too complicated. If somebody knows how to do that, I would be very happy to get the information.

You want only FLAC image & AAC tracks? You only need to edit the INI file:

1. Change "ImageExt=wav" to "ImageExt=flac" (without quotes)
2. Set "NeroAac=0" OR "iTunesAac=0" (I don't know which one you would like) setting to =1 (others to 0 of course)
3. Rip with F10

All this information is available in the original REACT Wiki page.
m_l
Is there anyway to embed artwork to .ogg files in REACT? I can do it manually with AudioShell. I have searched, but cannot find a way to do it with REACT.
nago
I don't know of any command line tools to add album art to APE tags (TAK and WV) or to add to vorbis comments (OGG)... I'd love to know myself.


As for the virus report, if you got the .exe straight from Neil's website, I'm sure it's a false positive. If you are worried you can even compile the .exe yourself if you'd like smile.gif
Synthetic Soul
QUOTE(feelgood @ Jan 14 2008, 23:18) *
First I rip the CD with EAC to a wav-image and then re-rip the wav file with React/Daemon-Tools to get a FLAC image-file and AAC track-files in two consecutive sessions (F4 and F10). This procedure is the fastest and most convinient to my knowledge. I tried to modify the ini and cfg-files to leave the temporary wav file, the cue file and the log file from a CD->FLAC-image conversion session intact, but it went too complicated. If somebody knows how to do that, I would be very happy to get the information.
You could quite easily do this in one stage with REACT.

Keeping the WAV image is easy. The only slightly complicated bit is ensuring that you have an accurate cuesheet for the WAVE file. I would use SED for this: to amend the FLAC cuesheet, and save it in your WAV folder. Here's how:

Assuming that you are using the amended CFGs, replace the section (at the beginning of the image processing code):

CODE
REM Ensure that the EAC log is available
:CheckForLog
IF NOT EXIST "@eaclog@" GOTO Pause

.. with this:

CODE
REM Ensure that the EAC log is available
:CheckForLog
IF NOT EXIST "@eaclog@" GOTO Pause


REM Store WAVE image
SET dest="@ImageDir_WAV@%imageDir%"
IF NOT EXIST %dest% MKDIR %dest%
PUSHD %dest%
    FOR %%G IN ("@image@") DO SET imageName=%%~nG
    COPY /Y "@source@" "%imageName%.wav"
    COPY /Y "@eaclog@" "%imageName%.log"
    @tools@\SED.EXE s/\.@imageext@/\.wav/ <"@cuesheet@" >"%imageName%.cue"
POPD

Then simply add a line in REACT.ini, under the [UserOutputNames] section, to set the value of ImageDir_WAV.

This additional code will create the folder that you specify with ImageDir_WAV. It will then copy the source WAVE image to this folder, using the same naming scheme as your FLAC image ("<imageName>"). It will copy the EAC log to the folder naming it as "<imageName>.log". Finally it will use SED to replace ".flac" with ".wav" in the cuesheet text, and save it as "<imageName>.cue".

Check this wiki article to find out where to get SED and what to do with it.
nago
I like your SED methodology on the wiki page, but I think I had ran into a problem with a similar methodology when trying to accomplish the same effect myself...

If there is an Ampersand in the resultant %TrackName%, doesn't sed replace it with the matched string? Or does your method somehow avoid that pitfall? I wasn't able to find a method to escape the ampersand within SED, as it didn't except \Q...\E regex within the RHS.
Synthetic Soul
No, my method does not escape potentially problematic characters; so, you're right: it's possible that some filenames may cause a problem.

I guess with some effort we could escape characters before adding them to the SED command. I hate doing this sort of thing in batch files though: the commands aren't really up to it.

Edit: @feelgood, BTW: the potential issue discussed does not affect the code above - only the code in the wiki article. Fear not!
nago
QUOTE(Synthetic Soul @ Jan 15 2008, 05:24) *

I hate doing this sort of thing in batch files though: the commands aren't really up to it.


I've certainly noticed this.

I was pondering at one point if I shouldn't just replace the whole DOS backend with a BASH one instead...

Maybe for this summer's "I'm Bored" project?

I don't think there are any other problematic characters, though. I believe the RHS only interprits Ampersands (Matched strings), backslashes and forward slashes. The latter two which should not be in %TrackName% anyway.

Edit: Whoops! Didn't mean to start a fear campaign. Fear not indeed!
SamHain86
QUOTE(my original post)
QUOTE(feelgood @ Jan 15 2008, 00:18) *

First I rip the CD with EAC to a wav-image and then re-rip the wav file with React/Daemon-Tools to get a FLAC image-file and AAC track-files in two consecutive sessions (F4 and F10). This procedure is the fastest and most convinient to my knowledge. I tried to modify the ini and cfg-files to leave the temporary wav file, the cue file and the log file from a CD->FLAC-image conversion session intact, but it went too complicated. If somebody knows how to do that, I would be very happy to get the information.

REACT is just EAC, only with things applied over it. Why not just set your INI:
CODE
ImageExt=flac
...
NeroAac=1

And do it in one pass instead of three? It should leave the EAC LOG alone, and it wouldn't make sense to keep the WAV-image when you have the FLAC image.

Thought it took me to the last page just now... sorry for the late reply.
Akkurat
FEAR NOT! I'm working on the SED problem right now.. actually have been couple of days already.. it's not easy but I think I got it figured out. There's more problematic chars besides the ampersand. I've gathered all the information and now I'm testing and creating escape code. I'll get back in 1-2 days (I can't use all my time to do these things u know).

The SED tool is a bad choice (in case there's more options to choose from) for "REACT:Amending Cuesheet File References" because there's no need to use regex in the substitution. If anyone knows a good DOS command line utility to just change strings in text files, let me know. It would be much easier to use without these regex special char escapes. It's impossible to write a "definitive" escape guide (or code) to SED since there's a few "what if user decides to do.." options.

And for the cherry on the top: SED converts all modified/created files into unix-type newline files (CR/LF -> LF). Files work ok in windows but... devil in the details kind of thing. I had to get a new tool (todos.exe) to change SED modified files back to CR/LF.
Synthetic Soul
GSAR: http://gnuwin32.sourceforge.net/packages/gsar.htm

CODE
gsar, ver 1.20 -- Copyright (C) 1992-2007 Tormod Tjaberg & Hans Peter Verne

Usage: gsar [options] [infile(s)] [outfile]
Options are:
-s<string> Search string
-r[string] Replace string. Use '-r' to delete the search string from the file
-i         Ignore case difference when comparing strings
-B         just display search & replace Buffers
-f         Force overwrite of an existing output file
-o         Overwrite the existing input file
-c[n]      show textual Context of match, 'n' is number of bytes in context
-x[n]      show context as a heX dump, 'n' is number of bytes in context
-b         display Byte offsets of matches in file
-l         only List filespec and number of matches (default)
-h         suppress display of filespec when displaying context or offsets
-du        convert a DOS ASCII file to UNIX (strips carriage return)
-ud        convert a UNIX ASCII file to DOS (adds carriage return)
-F         'Filter' mode, input from stdin and eventual output to stdout
-G         display the GNU General Public Licence

Ctrl characters may be entered by using a ':' in the string followed by the
ASCII value of the character. The value is entered using ':' followed by three
decimal digits or ':x' followed by two hex numbers. To enter ':' use '::'

Neither solution discussed today require regular expressions. GSAR would require some extra coding to create the list of commands to execute, as it can't appear to run a list of actions from a text file as per SED; however I would assume that you could simply write GSAR commands to a batch file instead, and just execute it (rather than write SED actions to a text file and pass it to SED).


As an example, the SED line above:

CODE
@tools@\SED.EXE s/\.@imageext@/\.wav/ <"@cuesheet@" >"%imageName%.cue"

.. could be amended to:

CODE
@tools@\GSAR.EXE -s.@imageext@ -r.wav "@cuesheet@" "%imageName%.cue"
Synthetic Soul
This would be my suggestion for the cuesheet amend code:

Use the following in the track processing section:

CODE
SET trackCueFile="$cdartist$ - $album$.cue"
IF NOT EXIST %trackCueFile% COPY "@albumfile@.[mg].cue" %trackCueFile%
ECHO @tools@\GSAR.EXE "-sFILE """@basename@.wav"""" "-rFILE """%TrackName%.wv"""" -o %trackCueFile%>>update-cuesheet.bat

E.g.:

CODE
IF NOT @Wavpack@==1 GOTO end_wavpack_tracks
    IF NOT EXIST %TrackDir_Wavpack% MKDIR %TrackDir_Wavpack%
    PUSHD %TrackDir_Wavpack%
        IF @various@==1 SET VA_tag=-w "album artist=@VA@"
        ECHO ON
        @tools@\wavpack.exe @Opt_Wavpack@ %VA_tag% -w artist="@artist@" -w album="@album@" -w track="@track@/@numtracks@" -w title="@title@" -w year="@year@" -w genre="@genre@" -w comment="@comment@" -w encodedby="%USERNAME%" -w encodersettings="Wavpack @Ver_Wavpack@ @Opt_Wavpack@" "@source@" "%TrackName%.wv"
        @ECHO OFF
        SET trackCueFile="$cdartist$ - $album$.cue"
        IF NOT EXIST %trackCueFile% COPY "@albumfile@.[mg].cue" %trackCueFile%
        ECHO @tools@\GSAR.EXE "-sFILE """@basename@.wav"""" "-rFILE """%TrackName%.wv"""" -o %trackCueFile%>>update-cuesheet.bat
        IF %have_cover%==1 IF NOT EXIST folder.jpg COPY "@cover@" folder.jpg
        TITLE @track@/@numtracks@ - "@album@"
    POPD
:end_wavpack_tracks


Use the following in the final track section:

CODE
CALL update-cuesheet.bat
DEL update-cuesheet.bat

E.g.:
CODE
IF @Wavpack@==1 (
    PUSHD %TrackDir_Wavpack%
        IF %add_rg%==1 @tools@\wvgain.exe -a *.wv
        REM COPY /Y "@eaclog@" "EAClog.txt"
        CALL update-cuesheet.bat
        DEL update-cuesheet.bat
    POPD
)


If anyone wants to test and confirm we could add it to the wiki article.
Akkurat
I can do it. I have already done some test code but just need to finish it later (I'm watching a hockey game currently).

I don't think you can escape quotes with "".

Here's my test (for general use):
CODE
REM ** test.txt contains one or more following line(s): this is a "piece" of: text to: test with :: this "" test text

REM ** VARS
SET text=this is a "piece" of: text to: test with :: this "" test text
SET outputText=TESTING DONE:all done "great" work :: "" thank you"

REM ** ESCAPE
SET text=%text::=::%
SET text=%text:"=:x22%

SET outputText=%outputText::=::%
SET outputText=%outputText:"=:x22%

gsar.exe "-s%text%" "-r%outputText%" "test.txt" "output.txt"

In general we need to escape two chars: the quote (") and the colon (:). The quote is escaped with hex (" -> :x22). I know that we don't need these escapes with "Amending Cuesheet File References", but I think that it would be better to include these (+text to explain them) because somebody could use GSAR to other needs.

Also I found this in the manual:
CODE
The precompiled MSDOS executable in the archive supports response files. Just put you gsar commands into a file and put a ‘@’ in front of the filename on the gsar command line.

Example: file foobar.txt contains -ssupercalifragilisticexpialidocus:
gsar @foobar.txt poppins.txt

So if you let me, I can change the wiki page later today. ok?
Synthetic Soul
QUOTE(Akkurat @ Jan 15 2008, 17:30) *
I don't think you can escape quotes with "".
The code I posted has been tested, and works.

QUOTE(Akkurat @ Jan 15 2008, 17:30) *
I know that we don't need these escapes with "Amending Cuesheet File References", but I think that it would be better to include these (+text to explain them) because somebody could use GSAR to other needs.
I'm not sure that it should be included in that wiki article, but some tips for using GSAR elsewhere would always be useful.
feelgood
QUOTE(Synthetic Soul @ Jan 15 2008, 12:10) *

You could quite easily do this in one stage with REACT.
Keeping the WAV image is easy. The only slightly complicated bit is ensuring that you have an accurate cuesheet for the WAVE file. I would use SED for this: to amend the FLAC cuesheet, and save it in your WAV folder. Here's how:
*
*
*
Then simply add a line in REACT.ini, under the [UserOutputNames] section, to set the value of ImageDir_WAV.

This additional code will create the folder that you specify with ImageDir_WAV. It will then copy the source WAVE image to this folder, using the same naming scheme as your FLAC image ("<imageName>"). It will copy the EAC log to the folder naming it as "<imageName>.log". Finally it will use SED to replace ".flac" with ".wav" in the cuesheet text, and save it as "<imageName>.cue".

Check this wiki article to find out where to get SED and what to do with it.

Synthetic Soul, you're the man! This worked perfectly!

Now, after ripping the CD (F10) and virtual-ripping the wav image-file (F4) I have:
1. FLAC-image and
2. iTunes AAC-tracks with all the appropriate cue and log files. I even get
3. the original WAV image-file and cuesheet to burn a backup copy of a badly scratched disc, if needed.

Thousand thanks!

SamHain86 and Akkurat:
React/iTunesEncode don't support one-pass conversion of FLAC-image and iTunes AAC-tracks. That should be added to the Wiki.

- feelgood
Akkurat
QUOTE(Synthetic Soul @ Jan 15 2008, 19:39) *
QUOTE(Akkurat @ Jan 15 2008, 17:30) *
I don't think you can escape quotes with "".
The code I posted has been tested, and works.

We were both right (if we count out my bad expression I made in a hurry): one can't _replace_ (this is what I meant) the quote with two quotes but three quotes.. quite confusing since the colon is escaped with replacing it with two colons. I would use the hex or decimal escape solution. But in fact we don't need that in "Amending Cuesheet..." because we can shorten the substitution to:

CODE
GSAR.EXE "-s@basename@.wav" "-r%TrackName%.wv"


QUOTE(Synthetic Soul @ Jan 15 2008, 19:39) *
QUOTE(Akkurat @ Jan 15 2008, 17:30) *
I know that we don't need these escapes with "Amending Cuesheet File References", but I think that it would be better to include these (+text to explain them) because somebody could use GSAR to other needs.
I'm not sure that it should be included in that wiki article, but some tips for using GSAR elsewhere would always be useful.

Any suggestions where? I think I'd put that in the "Amending Cuesheet..." wiki article since this is the only place where it's going to be used... BUT in the bottom part of the page with big header separating it from the main article. No?
Synthetic Soul
QUOTE(Akkurat @ Jan 15 2008, 20:10) *
But in fact we don't need that in "Amending Cuesheet..." because we can shorten the substitution to:

CODE
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.

QUOTE(Akkurat @ Jan 15 2008, 20:10) *
I think I'd put that in the "Amending Cuesheet..." wiki article since this is the only place where it's going to be used... BUT in the bottom part of the page with big header separating it from the main article. No?
I totally agree. In retrospect the article is an acceptable place, if the additional code is added as an extra section at the bottom, as supplimentary information to the actual article text.

Thanks.
nago
So is
CODE
GSAR.EXE "-s@basename@.wav" "-r%TrackName%.wv"

The final verdict?

If Akkurat thinks it works then I guess I'm inclined to believe, since he tests everything so meticulously tongue.gif
Akkurat
QUOTE(nago @ Jan 15 2008, 23:09) *
So is
CODE
GSAR.EXE "-s@basename@.wav" "-r%TrackName%.wv"

The final verdict?

If Akkurat thinks it works then I guess I'm inclined to believe, since he tests everything so meticulously tongue.gif

That's my trademark. Pain in the ass. wink.gif I vote yes.. would you believe?! biggrin.gif But seriously, is there a possibility to find more than one identical "$cdartist$ - $album$ - $track$ - $title$" text strings in cue file? No. At least the $track$ is always different. The "FILE "" string at the front makes no difference whatsoever.

The work is a little bit stopped because, can you already guess, I think I've found a bug/problem in GSAR (I emailed authors). Whatever I do, I find problems... I don't know if I should laugh or cry. smile.gif Get this; I still don't have my custom working REACT configured.. all I seem to do is bug hunt... I implemented tag.exe to my conf and found a bug/problem, fixed it, next SED amend cuesheets, major problems.. maybe I have my REACT working in the next century. biggrin.gif

Anyone care to try following instructions with GSAR?
CODE
The precompiled MSDOS executable in the archive supports response files. Just put you gsar commands into a file and put a ‘@’ in front of the filename on the gsar command line.

Example: file foobar.txt contains -ssupercalifragilisticexpialidocus:
gsar @foobar.txt poppins.txt

This always gives me the following error message: "gsar: command error, no search string specified".
SamHain86
QUOTE(feelgood @ Jan 15 2008, 18:45) *
SamHain86 and Akkurat:
React/iTunesEncode don't support one-pass conversion of FLAC-image and iTunes AAC-tracks.
Um... I am not quite sure what you mean... Is that because iTunesEncode does not support piping?

I use my REACT2 to rip a CD to a FLAC-image [with embedded CUE-sheet] AND create MP3 and OGG Tracks in one pass. Image mode can process the WAV and CUE to create the tracks using ACDir.
Synthetic Soul
QUOTE(nago @ Jan 15 2008, 21:09) *
So is
CODE
GSAR.EXE "-s@basename@.wav" "-r%TrackName%.wv"

The final verdict?
My string will work absolutely fine (whatever Akkurat's concerns) but the above should be perfectly adequate, and I would second it for the sake of clarity.

BTW: It took me five minutes of Googling to settle on GSAR.

QUOTE(Akkurat @ Jan 15 2008, 22:09) *
The work is a little bit stopped because, can you already guess, I think I've found a bug/problem in GSAR (I emailed authors). Whatever I do, I find problems...
Can you share what the problem is?
nago
QUOTE(Synthetic Soul @ Jan 15 2008, 17:43) *

Can you share what the problem is?


I think his issue is that he cannot get it to execute a script from file.
Akkurat
QUOTE(nago @ Jan 16 2008, 00:47) *
QUOTE(Synthetic Soul @ Jan 15 2008, 17:43) *

Can you share what the problem is?
I think his issue is that he cannot get it to execute a script from file.

Correct. I'm sorry, I'm sometimes completely fu#%ing useless at communicating. It was clear to me that everybody would understand that the last request to test GSAR instructions I posted is the bug/problem I encountered. Sorry. *crawling back under my rock*

QUOTE(Synthetic Soul @ Jan 16 2008, 00:43) *
My string will work absolutely fine (whatever Akkurat's concerns) but the above should be perfectly adequate, and I would second it for the sake of clarity.

Yes it works, I just offered a replacement so that we could get away from the confusing char escape.. as you say, for the sake of clarity.
feelgood
QUOTE(SamHain86 @ Jan 16 2008, 00:28) *

QUOTE(feelgood @ Jan 15 2008, 18:45) *
SamHain86 and Akkurat:
React/iTunesEncode don't support one-pass conversion of FLAC-image and iTunes AAC-tracks.
Is that because iTunesEncode does not support piping?

I don't know for sure, but there is some discussion in this thread beginning from post #167.

- feelgood

(and I sure feel good now, thanks to this magnificent forum!)
Synthetic Soul
QUOTE(Akkurat @ Jan 15 2008, 23:12) *
Correct. I'm sorry, I'm sometimes completely fu#%ing useless at communicating. It was clear to me that everybody would understand that the last request to test GSAR instructions I posted is the bug/problem I encountered. Sorry. *crawling back under my rock*
No, that's fine, no doubt me being dumb.

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.
SamHain86
QUOTE(feelgood @ Jan 16 2008, 00:42) *
QUOTE(SamHain86 @ Jan 16 2008, 00:28) *
Is that because iTunesEncode does not support piping?
I don't know for sure, but there is some discussion in this thread beginning from post #167.
Looking at the original REACT-image.cfg, there is no itune track setup. However:
  • there is the Nero AAC encoder; is there is big difference? They both use M4A
  • Would you be against using MP3?
Another idea for you is to use FB2K to transcode your FLAC-image configured with the iTunes AAC encoder, saving the time to mount a WAV image. Also, provided iTunes M4A allows it, it will keep all your tags, image art, and put the embedded EAC log into the M4A files you make.
nago
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

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.
SamHain86
QUOTE(nago @ Jan 16 2008, 10:40) *
CODE
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?
lipidicman
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)?
Synthetic Soul
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.
Synthetic Soul
QUOTE(Synthetic Soul @ Jan 16 2008, 14:19) *
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.

QUOTE(Synthetic Soul @ Jan 15 2008, 20:16) *
QUOTE(Akkurat @ Jan 15 2008, 20:10) *
But in fact we don't need that in "Amending Cuesheet..." because we can shorten the substitution to:

CODE
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
ECHO @tools@\GSAR.EXE "-s@basename@.wav""" WAVE" "-r%TrackName%.mp3""" MP3" -o %trackCueFile%>>update-cuesheet.bat



Akkurat
QUOTE(Synthetic Soul @ Jan 16 2008, 09:20) *
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.

QUOTE(lipidicman @ Jan 16 2008, 16:10) *
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)?
QUOTE(Synthetic Soul @ Jan 16 2008, 16:19) *
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.

QUOTE(Synthetic Soul @ Jan 16 2008, 16:19) *
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!!
Synthetic Soul
QUOTE(Akkurat @ Jan 16 2008, 15:51) *
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.

QUOTE(Akkurat @ Jan 16 2008, 15:51) *
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.

QUOTE(Akkurat @ Jan 16 2008, 15:51) *
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.

QUOTE(Akkurat @ Jan 16 2008, 15:51) *
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?
Synthetic Soul
QUOTE(Synthetic Soul @ Jan 16 2008, 16:08) *
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. biggrin.gif

CODE
GSAR -ud -o *.cue

Akkurat
QUOTE(Synthetic Soul @ Jan 16 2008, 18:08) *
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.

QUOTE(Synthetic Soul @ Jan 16 2008, 18:08) *
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.

QUOTE(Synthetic Soul @ Jan 16 2008, 18:08) *
Then I guess we'll have to agree to disagree.

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

QUOTE(Synthetic Soul @ Jan 16 2008, 18:08) *
QUOTE(Akkurat @ Jan 16 2008, 15:51) *
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
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".

QUOTE(Synthetic Soul @ Jan 16 2008, 19:40) *
QUOTE(Synthetic Soul @ Jan 16 2008, 16:08) *
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. biggrin.gif
CODE
GSAR -ud -o *.cue


Yes but it's not needed because gsar doesn't change the "newlines".
Synthetic Soul
QUOTE(Akkurat @ Jan 16 2008, 17:57) *
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.

QUOTE(Akkurat @ Jan 16 2008, 17:57) *
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.

QUOTE(Akkurat @ Jan 16 2008, 17:57) *
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?

QUOTE(Akkurat @ Jan 16 2008, 17:57) *
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.

QUOTE(Akkurat @ Jan 16 2008, 17:57) *
CODE
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.

QUOTE(Akkurat @ Jan 16 2008, 17:57) *
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.
nago
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.
Synthetic Soul
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
SET sedTrackName=%TrackName:&=\&%
ECHO s/\Q@basename@\E\.wav"/%sedTrackName%\.wv/>>sedlist.txt
nago
QUOTE(SamHain86 @ Jan 16 2008, 08:43) *

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.
Synthetic Soul
QUOTE(nago @ Jan 16 2008, 21:08) *
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. smile.gif
nago
QUOTE(Synthetic Soul @ Jan 16 2008, 16:49) *

QUOTE(nago @ Jan 16 2008, 21:08) *
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. smile.gif


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!
Akkurat
QUOTE(nago @ Jan 16 2008, 23:08) *
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
Synthetic Soul
QUOTE(nago @ Jan 16 2008, 21:59) *
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. blush.gif
Synthetic Soul
QUOTE(Akkurat @ Jan 16 2008, 22:02) *
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
SET sedTrackName=%TrackName:\=\\%
SET sedTrackName=%sedTrackName:&=\&%
ECHO s/@basename@\.wav"/%sedTrackName%\.wv/>>sedlist.txt
Akkurat
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.

QUOTE(Synthetic Soul @ Jan 16 2008, 21:27) *
QUOTE(Akkurat @ Jan 16 2008, 17:57) *
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.
Synthetic Soul
QUOTE(Akkurat @ Jan 17 2008, 00:48) *
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?

QUOTE(Akkurat @ Jan 17 2008, 00:48) *
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.
Akkurat
QUOTE(Synthetic Soul @ Jan 17 2008, 12:01) *
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.

QUOTE(Synthetic Soul @ Jan 17 2008, 12:01) *
QUOTE(Akkurat @ Jan 17 2008, 00:48) *
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
gsar.exe "-sAAA é^%&--x'[]!äöå...WAV" "-rAAA é^%&---'[]-äöå...FLAC" -o "test.cue"

Executing (execution to us):
CODE
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?
Synthetic Soul
Trust you, eh? wink.gif

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?
nago
QUOTE(Synthetic Soul @ Jan 17 2008, 15:45) *

Trust you, eh? wink.gif

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!
Akkurat
QUOTE(nago @ Jan 17 2008, 22:48) *
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. smile.gif

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
SET test=%test:a=ab%

Any hints to solve this? I wonder what IS the next problem after we solve this one. smile.gif
Synthetic Soul
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.