1.

Solve : How to supress "Compare more file (Y/N)?"?

Answer»

In my system, it doesn't support 'fc' command. The only way I can do is to use 'comp' instead. But 'comp' always prompt "Compre more file (Y/N)?" which is not what I want. I want only its return code 'errorlevel'. How can I SUPPRESS its prompt?Quote from: Stan Huang on June 10, 2013, 05:23:45 AM

In my system, it doesn't support 'fc' command. The only way I can do is to use 'comp' instead.

What do you get when you type FC ?

Is there something broken on your computer in this regard, like when you claimed that pause didn't work on your computer?

Why can't you use FC?I typed 'fc' and the responsed message is: " 'fc' is not recognized as an internal, EXTERNAL command, operable program or batch file.
My system is POSReady 2009. Something could be missed in system build.
I APOLOGIZE again for the mistake about 'pause' last time.I used the following to supress any prompt and message:
echo n > NNNN
comp file1 file2 < nnnn > nul 2> null

I works.Quote from: Stan Huang on June 10, 2013, 06:58:50 PM
I typed 'fc' and the responsed message is: " 'fc' is not recognized as an internal, external command, operable program or batch file.
My system is POSReady 2009. Something could be missed in system build.

Which version of Windows is it?
What does it print when you type VER

Quote from: Stan Huang on June 10, 2013, 07:23:25 PM
I used the following to supress any prompt and message:
echo n > nnnn
comp file1 file2 < nnnn > nul 2> null

I works.

STDERR is going into a file called null and you meant to use nul I presume.ver ==>> "Microsoft Windows XP [Version 5.1.2600]"
null is typo of nulQuote from: Stan Huang on June 11, 2013, 01:32:09 AM
ver ==>> "Microsoft Windows XP [Version 5.1.2600]"

FC.EXE is in every NORMAL copy of XP according to google.

Is your XP version a special build, or is it corrupted and files are missing? You can run SFC.EXE to check and replace the system files.That's not my PC. Its owner took my program to run. So, I don't know why it doesn't have popular command like 'fc.exe'. Anyway, I copied it from other system and it worked.In case it's not general knowledge, FC is not reliable in text mode. I think you are using it in binary mode but wanted to make that comment just in case.

Here are some KB articles
XP
http://support.microsoft.com/kb/953929
http://support.microsoft.com/kb/953930

Vista/2008
http://support.microsoft.com/kb/953932
http://support.microsoft.com/kb/953931Quote from: Stan Huang on June 10, 2013, 07:23:25 PM
I used the following to supress any prompt and message:
echo n > nnnn
comp file1 file2 < nnnn > nul 2> null
IF IT WORKS, USE IT!


Discussion

No Comment Found