Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi...back again with another question!
I hope someone can help me with this...
My dilema is setting a variable to a string containing a "=" in this case "abcd=1234"
using the script below works on XP but not on Win98se....is there a way around this problem?
script:echo e100'set %%1='> %temp%.\temp.bat
FOR %%? in (rcx 7 w q) do echo %%?>> %temp%.\temp.bat
TYPE %temp%.\temp.bat |DEBUG %temp%.\temp.bat > nul
FIND "abcd=1234" < FILE.TXT >> %temp%.\temp.bat
call %temp%.\temp.bat VAR1
del %temp%.\temp.batI'm sure the problem is Win98 setting a variable to a string containing "="
I've used a script posted by secret_doom using assembly within a batch to edit the string first but again if the ORIGINAL= a "=" it wont work....
Please help!

Hi
I haven't done any scripting in win 98 but in win 98 virtual dosfind "abcd=1234" file.ext >a.dat
find "abcd=1234" <file.ext>>a.dat
find "abcd=1234" <file.ext> > a.datsame result
no problem with the command it would seem, however use double quotation marks if the desired string contains a quotation mark.

Hi Anenefan
The problem is not with FIND but with setting a variable to the result of FIND
On XP SET VAR1=abcd=1234 works OK
On Win98 SET VAR1=abcd=1234 Does not work at all the result echoed on VAR1 is Echo is off or on whichever!
The same script in my first post will work with any STRING provided there is not an = within it....I'm looking for a way around this under WIN98
thanks
dual

Hi
Oh sorry I had missed that, I looked at the scripting quickly and looked for a command with the = sign.They are work arounds inputting a true string in as a value, but will require downloading a better set command, which is ok if you want it to work only on your machine. In dos including 98, some symbols > | < = included as part of the string will cause an error. (does not copy the whole string as intended.)

![]() |
Transforming parameter in...
|
Help:Firewire through PCM...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |