Simple string comparison.

Started by morenos1, November 04, 2019, 11:59:21 AM

Previous topic - Next topic

morenos1

It has to be me.

I can not get results comparing a simple string.

Reading simple variable "a" from an ini file.

[mct]
ver=1.00.0000

a=1.00.0000

Reading variable "b" from a text file using FileGet or FileGetW  (Unicode?)

1.00.0000

b=1.00.0000

Comparing both strings if they are equal will give not true.

Assigning both variables within the script gives true.


morenos1

The text file containing variable "b" is output from PowerShell .....  (>>c:\output.txt)

morenos1

PowerShell deal. I got it working.

Thanks ....

morenos1

Never mind,

I thought I had it working but no cigar.

Variable b comes from a text file created with "| Out-File -FilePath c:\temp\ONESolutionVER.txt"

morenos1

My 2 simple text files to obtain variables "a" & "b" then compare...