Piping input to fc

  • Thread starter Thread starter Csaba Gabor
  • Start date Start date
C

Csaba Gabor

FC.exe on my Win XP Pro compares two files. It takes the form:
FC fileSpec1 fileSpec2

Is there any way I can pipe input to FC in place of feeding it actual
files. The motivation is that I will be calling FC programatically
from an environment that may not allow file writes. I will have the
input as two strings, and can open bidirectional communication with the
Cmd window that I'll be calling FC from.

Thanks for any tips,
Csaba Gabor from Vienna
 
FC.exe on my Win XP Pro compares two files. It takes the form:
FC fileSpec1 fileSpec2

Is there any way I can pipe input to FC in place of feeding it actual
files. The motivation is that I will be calling FC programatically
from an environment that may not allow file writes. I will have the
input as two strings, and can open bidirectional communication with the
Cmd window that I'll be calling FC from.

Thanks for any tips,
Csaba Gabor from Vienna

Does this apply to your circumstance, quoting strings if neccessary?

if [string1]==[string2] echo ok

if /i [string1]==[string2] echo ok

or

echo "-string-"|find "-string-">nul && echo the same
 
foxidrive said:
FC.exe on my Win XP Pro compares two files. It takes the form:
FC fileSpec1 fileSpec2

Is there any way I can pipe input to FC in place of feeding it actual
files. The motivation is that I will be calling FC programatically
from an environment that may not allow file writes. I will have the
input as two strings, and can open bidirectional communication with the
Cmd window that I'll be calling FC from.

Thanks for any tips,
Csaba Gabor from Vienna

Does this apply to your circumstance, quoting strings if neccessary?

if [string1]==[string2] echo ok

if /i [string1]==[string2] echo ok

or

echo "-string-"|find "-string-">nul && echo the same

This latter is the kind of thing I was looking for, thanks, but I
couldn't get it to work out for FC. I wound up rolling my own PHP
function for it, whose outline is described in
http://groups.google.com/group/comp.lang.php/browse_frm/thread/da4e17a36978dd03/83f9395dd9e32cfe

Csaba
 
Back
Top