Cinchoo – TABS to Spaces converter tool

ChoTABSToSpacesConversionTool

Download Binary (Zip)

Download Source (Zip)

This tool converts tab characters to space characters and vice verse in text files. It is written in using WPF/C#/VS.NET 2010.

Features

  • Converts any text files
  • Works with single file as well as files in a folder
  • Number of Tab Size can be customized
  • Runs on Windows 95/98/ME/NT4/2k/2k3/2k8/XP/Vista/7

How to use

  • Click ‘Start’ whenever you are ready to convert files. Any time you can can start this conversion process.
  • Type a full path of the file or folder in ‘Choose a File / Folder’ text box, then click ‘Add’ button to add it to ‘File(s) / Folder(s)’ list box. Or you can click ‘Browse’ button, to choose the file for conversion.
  • At any time, you can select an item in ‘File(s) / Folder(s)’ list box, remove it using ‘Remove’ button.
  • Type a output folder name in ‘Output Folder’ text box. This is where all the converted files will be written. If the folder not exists, will be created automatically.
  • In ‘Valid File Exts’ text box, you can specify the type of files to be considered for conversion. Multiple file extensions can be specified in comma separated format.
  • Choose mode either ‘TAB to spaces’ or ‘Spaces to TAB’ to convert files in respective way.
  • Specify ‘Tab Size’ in the range of 1-60, amount of spaces for a TAB character.
  • In ‘Status’ box, you can view the statues of the file conversion.
  • Click ‘Clear’ button anytime to clear the ‘Status’ box.

Tips

  • You can drag and drop file(s) or folder(s) to this tool for easy conversion process.

Cinchoo – TABS to Spaces converter command line tool

ChoTABSToSpacesConversionConsoleTool

Download Binary (Zip)

Download Source (Zip)

This command line tool converts tab characters to space characters and vice verse in text files. It is written in using C#/VS.NET 2010.

You require .NET Framework in order to run this tool. You can download it from here.

Features

  • Converts any text files
  • Works with single file as well as files in a folder
  • Number of Tab Size can be customized
  • Runs on Windows 95/98/ME/NT4/2k/2k3/2k8/XP/Vista/7

How to use

  • Run the ChoTabsToSpacesConversionConsoleTool.exe file in command line with the following command line parameters

/SI                   Turn on Spaces to TABS, otherwise converts TABS to Spaces.
/FX                 Comma seperated file extensions.
/I                     Include subdirectry.
/O                   Output directory.
/N                   TAB size in spaces.
<default>      Semicolon(;) seperated Files or Folders path.

Example

ChoTabsToSpacesConversionConsoleTool.exe  /I  "C:\SampleFileOrFolder1,C:\SampleFileOrFolder2"
ChoTabsToSpacesConversionConsoleTool.exe  /I /N:4  "C:\SampleFileOrFolder1,C:\SampleFileOrFolder2"
ChoTabsToSpacesConversionConsoleTool.exe  /SI /I /N:4  "C:\SampleFileOrFolder1,C:\SampleFileOrFolder2"

Cinchoo – Files & Folders Cleanup tool

ChoFileFolderCleanupTool

Download Binary (Zip)

Download Source (Zip)

This tool helps to remove matching files and folders from disk. It was written in using WPF/C#/VS.NET 2010.

Features

  • Clean up files and folders matching regular expression pattern
  • Works with single file as well as files in a folder
  • Runs on Windows 95/98/ME/NT4/2k/2k3/2k8/XP/Vista/7

How to use

  • Click ‘Start’ whenever you are ready to clean up files. Any time you can can start this cleanup process.
  • Type a full path of the file or folder in ‘Choose a File / Folder’ text box, then click ‘Add’ button to add it to ‘File(s) / Folder(s)’ list box. Or you can click ‘Browse’ button, to choose the file/folder for cleanup.
  • At any time, you can select an item in ‘File(s) / Folder(s)’ list box, remove it using ‘Remove’ button.
  • In ‘Matching Expr’ text box, you can specify the regular expression to identify files and folders for cleanup. (Please visit Regular Expression Cheat Sheet for help in creating regular expression)
  • Check ‘Match Files’ or ‘Match Folders’ check boxes, in order to include them for cleanup process respectively.
  • Check ‘Preview Mode’ option, if you just want to see the files and folders are cleaned in the ‘Status’ box or in the log file under ‘Logs’ folder. This option will not delete files or folders.
  • Check ‘Rm Dir If Empty’ option, if you want to remove empty directory during this process.
  • Check ‘Include Sub Dir’ option, to include all sub directories for clean up process.
  • In ‘Status’ box, you can view the statues of the file conversion.
  • Click ‘Clear’ button anytime to clear the ‘Status’ box.

Tips

  • You can drag and drop file(s) or folder(s) to this tool for easy cleanup process.

Cinchoo – Files & Folders cleanup command line tool

ChoFileFolderCleanupConsoleTool

Download Binary (Zip)

Download Source Files (Zip)

This command line tool to remove matching files and folders from disk. It is written in using C#/VS.NET 2010.

You require .NET Framework in order to run this tool. You can download it from here.

Features

  • Clean up files and folders matching regular expression pattern
  • Works with single file as well as files in a folder
  • Runs on Windows 95/98/ME/NT4/2k/2k3/2k8/XP/Vista/7

How to use

  • Run the ChoFileFolderCleanupConsoleTool.exe file in command line with the following command line parameters

/P                   Turn on preview mode.
/I                     Include subdirectry.
/R                   Remove directory if empty.
/MD               Match folder names.
/DMF            Don’t Match file names.
/F                   File name matching regular expression.
<default>      Semicolon(;) seperated Files or Folders path.

Example

ChoFileFolderCleanupConsoleTool.exe  /I  "C:\SampleFileOrFolder1,C:\SampleFileOrFolder2"
ChoFileFolderCleanupConsoleTool.exe  /I /MD  "C:\SampleFileOrFolder1,C:\SampleFileOrFolder2"
ChoFileFolderCleanupConsoleTool.exe  /DMF /I /P  "C:\SampleFileOrFolder1,C:\SampleFileOrFolder2"

PS
Please visit Regular Expression Cheat Sheet for help in creating regular expression

Cinchoo – Bulk Files & Folders rename utility

ChoBulkFileRenameTool

Download Binary (Zip)

Download Source (Zip)

This tool helps to rename bulk files and folders recursively. It was written in using WPF/C#/VS.NET 2010.

Features

  • Bulk file and folders rename matching either wildcard or regular expression patterns
  • Runs on Windows 95/98/ME/NT4/2k/2k3/2k8/XP/Vista/7

How to use

  • Click ‘Start’ whenever you are ready to rename files. Any time you can can start this process.
  • Type a full path of the file or folder in ‘Choose a File / Folder’ text box, then click ‘Add’ button to add it to ‘File(s) / Folder(s)’ list box. Or you can click ‘Browse’ button, to choose the file/folder for rename.
  • At any time, you can select an item in ‘File(s) / Folder(s)’ list box, remove it using ‘Remove’ button.
  • In ‘Find/Replace’ text boxes, you can specify either the wildcard or regular expression to identify files and folders for rename. (Please visit Regular Expression Cheat Sheet for help in creating regular expression)
  • Check ‘Match Files’ or ‘Match Folders’ check boxes, in order to include them for rename process respectively.
  • Check ‘Preview Mode’ option, if you just want to see the files and folders are renamed in the ‘Status’ box or in the log file under ‘Logs’ folder. This option will not rename the files or folder names.
  • Check ‘Include Sub Dir’ option, to include all sub directories for rename process.
  • In ‘Status’ box, you can view the statues of the file renames.
  • Click ‘Clear’ button anytime to clear the ‘Status’ box.

Tips

  • You can drag and drop file(s) or folder(s) to this tool for easy cleanup process.

Cinchoo – Xsd GUI tool

Download Source.zip – 52.5 KB

Download Binary.zip – 513.8 KB

Contents

1. Introduction

Many time we come across the need of parsing XML document and creating XML schema or common language runtime classes/entities. These entities are later passed between multiple methods, stored as configuration or used to perform some manipulation. Hand wrting code for parsing these entities from XML document is tedious.

Microsoft has a nifty little tool called xsd.exe which lets you create serializable classes for the .NET framework from an XSD or XML file. Unfortunately it doesn’t come with the latest versions of Visual Studio and you have to download the Windows SDK to get hold of it.

This article presents the new Cinchoo GUI interface to xsd.exe tool to to parse XML documents and generating entities. This new interface built using Cinchoo framework, using most of its features like Configuration, Command line parsing, Application host, binding to controls etc. This is one of the the working example of building an application using this versatile .NET framework easily.

2. Features

Cinchoo Xsd tool provides following featutes

  1. Simplified GUI interface
  2. Support of Nested Xml files (refer Handling Nested Xml files article for more information about it.)
  3. Can run as console mode (passing /#AM:Console as command line argument)
  4. Can run as tray application (on minimizing the window)

3. How to run

This tool can be started as

  • Console Application
  • Windows Application
  • Tray Application

3.1 Window Mode

By default, if you run the executable (ChoXsd.exe), this will start as Windows application. The main window looks like below

Image 3.1.1 Main window 

  • Xml File Path – Input xml file path.
  • Output Directory – Destination directory where the generated files are created. If not specified, the generated files will be created under the input xml file directory.
  • Options – Please refer Microsoft Xsd.exe tool document for each option.
  • Status – All the generation process status messages are posted.
  • Generate – Button is to start the generation process.
  • Cancel – Button to cancel the generation process.

3.2 Tray Application Mode

Sometime you may want to keep this tool running all the time and quickly go back to get access to this tool to carry out generation of entities. In such cases, you can let them run in tray mode. By pressing ‘minimize’ button, the tool will be made to run in tray mode.

In this mode, below features are available to you. These will be available when you right click on this tool application icon in tray taskbar

  • Open – To restore the window.
  • Always on Top – To keep the window as topmost of all other windows applications.
  • Run at System Startup – This option let the application start up automatically when system starts.
  • Show in Taskbar – To show the application in the Taskbar.

3.3 Console Mode

This tool can be started as Console Application by passing /#AM:Console command line parameter to the executable.

Listing 3.3.1 Running as console mode 

>ChoXsd.exe /#AM:Console

3.3.1 Help

To get help of the application, pass /? in command line

Listing 3.3.1.1 Getting help

>ChoXsd.exe /#AM:Console /?
ChoXsd [Version 1.0.0.1]
Copyright c  2014

CHOXSD xmlfile [/order] [/f] [/edb] [/n:] [/l:] [/c] [/o:] [/d] [/e:] [/eld]

        xmlfile Name of an xml file to infer xsd schema from.
        /order  Generate explicit order identifiers on all particle members.
        /f      Generate fields instead of properties.
        /edb    Implement INotifyPropertyChanged interface on all generated
                types to enable data binding..
        /n      The namespace for generated class files. The default
                namespace is the global namespace.
        /l      The language to use for the generated code. Choose from
                'CS', 'VB', 'JS', 'VJS', 'CPP' or provide a fully-qualified
                name for a class implementing
                System.CodeDom.Compiler.CodeDomProvider. The default
                language is 'CS' (CSharp).
        /c      Generate classes for this schema.
        /o      The output directory to create files in. The default is the
                current directory.
        /d      Generate sub-classed DataSet for this schema.
        /e      Element from schema to process.
        /eld    Generate LINQ-enabled sub-classed Dataset for the schemas
                provided.

Below is screenshot of help

Image 3.3.1.1 Console window 

4. Configuration

UPDATE:

This application uses Microsoft Xsd.exe tool to generate entities. This program automatically discovers Xsd.exe tool under ‘C:\Program Files\Microsoft SDKs\Windows’ folder, remember it at startup. If you wish to use different version of this tool (Xsd.exe) in different location, you can configure it by opening [AppExe].config file and specifying Microsoft SDK path containing Xsd.exe tool in ‘SDKDirectory‘ appsetting.

Listing 4.1 [AppExe].config file

<?xml version="1.0" encoding="utf-8"?>
<configuration>
 <appSettings>
   <add key="SDKDirectory" value="C:\Program Files\Microsoft SDKs\Windows" />
 </appSettings>
</configuration>