Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: File Comparsion Program

02 Aug 2013   #1
x BlueRobot

 
File Comparsion Program

Purpose of File Comparison:

I've created a small Windows Application which allows the user to open two files within the same program, I've filtered the file types to text files, batch files and HTML files.

I wrote the program, since usually if I'm writing up a batch file, I will add or remove certain elements, and see if the batch file will work any better, although usually I would have to constantly copy and paste the original program, save the batch file, and then run the batch file. This program will allow you to create one batch file, and then change elements in a entirely different file without affecting the first file.

I also had an idea, that if someone was teaching another user, how to write in HTML or Batch, then they could compare the learner's file to their file, and quickly find any bugs or errors within the code for the learner.

Here's a fee screenshots of the program:

-1.jpg

The UI consists of two simple text boxes, and a menu strip with a few options similar to those found within Notepad.

-2.jpg

The program has the ability to open two files independently of each other.

-3.jpg

Clicking the Exit button, will warn you before exiting the application, so you don't accidentally delete your own work.

-4.jpg

The program will allow you to open HTML files, Batch Files and Text Files.

-5.jpg

Change the font size and font colour in both files, to allow you to highlight any changes or bugs you may find when writing or reading batch files. I've included larger font sizes to enable users to read the text better (I can add bigger sizes if needed).

-font-colour.jpg

Hope this program is useful to anyone, please PM me if you have problems or questions with the program.

Version 1.1 Release [Beta]:

I've made a small addition to the program, when you press the X, you will receive a prompt to confirm you want to close the program. See below:

-save.jpg

-close-2.jpg

At the moment, the program doesn't detect if you have made any changes, I'm learning on how to implement that into my program.

If you don't save any files, then the program loops back to the message box, I think I'm going to have another form created when the X is pressed, which will prompt you to save the file or not save the file instead.

Version 1.1 Release:

When clicking X, a message box will appear giving you two options: Yes and No. Yes will create a Save dialog box, the first box will be for File 1 and the second box will be for File 2. The No option will simply exit the application without saving any files.

Version 1.2 Release:

The program now detects changes to the text box, for example if you type anything into either text box, then you will receive the message box. If you haven't, have any changes to a text box, then the program will close normally without a message box appearing. Please note, even if you open a file into the text box, and don't make any modifications to the file, then the message box will still appear asking you if you would like to save the changes. I'm going to work and trying to detect modifications to opened files.

Version 1.3 Release:

The program will detect any changes made to opened files, and ask if would like to save these changes upon exiting the program. I would like to thank AceInfinity for helping me with the final version of the program.

Version 1.4 Release:

I've cleared up some code in the program, and added Combo Boxes as the option selection for the colours and font sizes. I've also added a few more colours to the program.

Version 1.5 Release:

Added Colour Dialog box (supports all colours), and added support for multi-colour text in both text boxes.






Attached Files
File Type: zip FileComparsion V1.5.zip (208.6 KB, 2 views)
My System SpecsSystem Spec
.

02 Aug 2013   #2
Golden

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64
 
 

Nice. Is there a limitation of file size?
My System SpecsSystem Spec
02 Aug 2013   #3
maxie

windows 7 home 64bit
 
 

Testing it out does it work on Windows 8
My System SpecsSystem Spec
.


02 Aug 2013   #4
x BlueRobot

 

Quote   Quote: Originally Posted by Golden View Post
Nice. Is there a limitation of file size?
No there shouldn't be, it'll create a scroll bar on the document like Word does
My System SpecsSystem Spec
02 Aug 2013   #5
x BlueRobot

 

Quote   Quote: Originally Posted by maxie View Post
Testing it out does it work on Windows 8
It's written with the .NET Framework, so should just be limited to that, and C# (what the program is written in) is portable across all editions.
My System SpecsSystem Spec
07 Aug 2013   #6
x BlueRobot

 

Version 1.1 is now released.
My System SpecsSystem Spec
08 Aug 2013   #7
x BlueRobot

 

Version 1.2 is now released.
My System SpecsSystem Spec
12 Aug 2013   #8
x BlueRobot

 

Version 1.3 has been released. The functionality of the program is fully complete.
My System SpecsSystem Spec
13 Aug 2013   #9
x BlueRobot

 

Version 1.4 is released.
My System SpecsSystem Spec
09 Sep 2013   #10
x BlueRobot

 

Version 1.5 has been released.
My System SpecsSystem Spec
Reply

 File Comparsion Program




Thread Tools





Similar help and support threads
Thread Forum
How can I write a batch file that opens a file in a program?
I wrote this batch file which does what I want it to do so far. @echo off "C:\Users\xxxxxx\Documents\HideTaskbar\HideTaskbar.exe" "C:\Program Files (x86)\VideoLANold\VLC\vlc.exe" "C:\Users\xxxxxx\Documents\HideTaskbar\ShowTaskbar.exe" exit
General Discussion
Locked file in Program File (x86) and I'm administrator
Sorry if I'm placing this question in the wrong place. Please move if necessary. This is a combination question both virus and administrative issues. I have a file called C:/Program Files(x86)/sweetm that is a known virus that I cannot remove. When I try to do so, my system tells me "You...
Performance & Maintenance
batch file open file for program in the startup folder
I have a computer that is a drone specifically for an outside LED sign. This computer is designed to never shut off and doesn't have any other program on it besides Operating System and the sign software. I need to create a batch file that I can place in the "start-up" folder that will open the...
General Discussion
This file does not have a program associated
Hi, all. I know this title has been used before several times, but the most recent ones talk about problems in the Libraries area, and I have no problems there. Almost all the desktop icons (24 of 27) give me this message when I left-click on them. Also almost all the items in the start menu give...
General Discussion
File does not have a program associated with it
hey I have a problem with DVD-RW Drive when I want to open DVD-RW Drive I see this message so how can I solve it? http://www.sevenforums.com/attachments/tutorials/67698d1271449840-manage-fix-file-does-not-have-program-associated-error.jpg I see this but there is no file for DVD-RW Drive ...
General Discussion
Program File X86
I have uninstalled a program (via control panel etc). And when I check within the ProgramFiles folder it is no longer there. How ever when I look in the Program File X86 folder the program is still there. I thought I must have made a mistake so went back to Control panel / Program files, but the...
Software

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:35.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App