Computing.Net > Forums > Disk Operating System > How do I create an FC Batch File

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How do I create an FC Batch File

Reply to Message Icon

Name: Canadian_Slammer
Date: January 14, 2001 at 15:16:10 Pacific
Comment:

I am trying to create a batch file that can take
two file names and output the diferences between
the files on screen. I also want to have the
ability to check for a third argument.If the third
argument is present I want to be able to save the
output of the command into a file.
Example compare a.txt b.txt outfile.
Any help on this?

Thanks
CS



Sponsored Link
Ads by Google

Response Number 1
Name: Ayexby
Date: January 15, 2001 at 04:19:42 Pacific
Reply:


This is pretty rudimentary, but this is the general idea:
compare.bat:

rem start of batch file
@echo off
if "%3"=="" goto nothird
fc %1 %2>%3
goto done
:nothird
fc %1 %2
:done
rem end of batch file



0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: How do I create an FC Batch File

How do I create an MS-DOS boot part www.computing.net/answers/dos/how-do-i-create-an-msdos-boot-part/9186.html

how do i hibernate from a batch? www.computing.net/answers/dos/how-do-i-hibernate-from-a-batch/13721.html

Color Dos Command Batch file www.computing.net/answers/dos/color-dos-command-batch-file/11335.html