'Convert XLS' is 10-20 times faster than using Excel. It also allows for the saving and restoring of complex 'conversion jobs'. Specify a 'conversion job' within the command line or Windows scheduler.
Command line capability is fundamental to ALL of our software tools. Demo batch files are installed ready for testing and modification. We are always here to help you implement our software.
Skipping files already converted while is no problem at all. Moving/deleting files already processed...check! These features allow for easy, unattended conversion of whole folders.
If you need to manipulate Excel, TXT, CSV file data, 'Convert XLS' comes with numerous features and specialized processes including:
Many CSV manipulation features are included:
More info on specific CSV file conversions
More info on specific Text file conversions
Special Promotion: Buy 'Convert XLS' and get
'Text to Excel Wizard',
Looking for software to convert CSV to Fixed Width Text Files? Yes? Perfect, we have just the tool you need. 'Convert XLS' has a built in fixed width profile editor allowing you to specify:
The editor makes it easy to create numerous unique fixed width text profiles that can be recalled for use, modified or backed up at your command. We store each profile in a simple text file for easy archiving, editing etc.
'Convert XLS' can convert CSV to fixed width text files (as well as Excel to TXT, CSV, XML, HTML) extremely fast and it does it without MS Excel. Converting from fixed width text file to CSV is also possible.
Note: We can handle HUGE file sizes (gigabytes) without a problem. Unicode and other text encodings (ASCII, ANSI, UTF8 etc.) are supported.
All our conversion tools allow you to automate the process by using:
You can even move or delete the input files after conversion. Skipping files already processed is another popular feature that is included.
'Convert XLS's complete documentation is available on-line for review. Continue reading below for specific instructions on how to use the user interface and command line for converting csv to text files. Of course please do download it and try it for free.
Run 'Convert XLS' then select the Convert Files Action To Do.
Select the 'Convert XLS' conversion method.
Select the input file path. For a whole folder be certain to use the *.ext format. For example if you want to convert the folder of CSV files located in "C:\source\" then use: "C:\source\*.CSV"
Specify the Input File Format. In this case it may be one of the following:
Click on the Options button and then
the Converting to/from a
Fixed Width Text File
tab and specify each column width (and optionally other attributes) for the output text file.
Also, within the Excel tab, for the input workbooks, you may choose the sheets, ranges and other options.
Specify the output file path. If you are doing a whole folder, then specify the whole folder using the "*.ext" format (for example "c:\output\*.txt"). Finally, specify the "Convert To File Format" output file type, in this case it may be:
Click the CONVERT button (or F5) on the tool bar to start converting.
If you click the ADD button, a
'Conversion Item' is added to the 'task list' at the bottom of the user
interface. You can add as many 'conversion tasks' as you want, and
save the 'Conversion Job' file for use at a later time. See
the File menu for saving and restoring 'Conversion Jobs'.
'Convert XLS' can be especially helpful if you require complicated file conversion jobs done regularly. By saving and recalling a conversion job file, 'Convert XLS' quickly remembers all the file conversion tasks and their details.
Note: The same 'conversion job' file discussed above can be ran by simply double clicking on it within Windows Explorer. It can also be specified in the command line by using the /J switch. For example:
ConvertXLS.exe /J"C:\Conversion Jobs\Convert CSV to TXT Command-Line.SII"
It is simply the best CSV to TXT conversion app you've never used... till today! Click here to download a free trial.
|Still not sure about the user interface? See an online video.|
NOTE: After installation, you can find simple batch files (e.g. CSVtoTXT.bat) for quick and easy usage by going to Start\All Programs\Convert XLS\Example Batch Files. These will work immediately if the installation was done in the default folder. if you have any questions or need additional examples. We will get you up and running fast!
For the full, accurate, and most recent information see the 'Convert XLS' command line documentation. If you have trouble running these examples see Helpful Hints For Creating a Command Line.
There are two approaches to using the command line:
A 'Conversion Job' is easily built using the 'Convert XLS' graphical user interface. All the details of the job are saved in a single conversion job file (e.g. 'c:\myjobs\Do-Multi-Step-Conversion.SII). Specifying a conversion job file with the command line is very easy by using the /J switch. You can have hundreds or thousands of tasks specified in the conversion job file, all of which will get executed in one fell swoop. For example:
ConvertXLS.EXE /J"D:\Job Files\Convert CSV to Text.SII"
Specifying a single conversion task requires a bit more effort, but does not require the prior creation of a 'Conversion Job' file. Everything that follows below will be about creating a 'conversion task' to convert from CSV to TXT by command line.
The first example shows how to convert the most popular form of a CSV file, a comma delimited file, to a Fixed Width Text file using the ‘Convert XLS’ conversion method. If you have a bar "|" (ASCII 124), or a tab (ASCII 9) delimited CSV file simply swap out the 44 (ASCII value for the comma) with the appropriate ASCII numeric value. Also, this example illustrates one of three viable methods to convert from a CSV to a fixed width text file. In example 1 we show how to specify every columns width. Alternatively you can have it auto size the column width to retain all the data by simply changing the 4th item in the /N switch from 2 to 0. In this case you do not need to specify the column widths. Example 2 will demonstrate this. The 3rd example shows how to use the ‘MS Excel’ conversion method. Note that it is only with the ‘Convert XLS’ conversion method that you can specify each column individually.
Each switch shown in blue is described in detail below the examples given. It is highly recommended you review each switches description before implementing the example, thereby giving you the full power of ‘Convert XLS’.
First specify your fixed width text file format using the Using the Fixed Width Text Profile Editor. You give a profile a name, in this case lets call it Profile142. To convert a single comma delimited CSV file (recall that the comma character has an ASCII numeric value of 44), "C:\in\input.CSV" to an fixed width text file the following syntax would be used:
ConvertXLS.EXE /S"C:\in\input.CSV" /T "C:\out\out.txt" /C21 /F6 /M2 /N"^^44^2^Profile142" /V
To convert a whole folder (and subfolders) of comma delimited CSV files, C:\in\*.CSV to fixed width text files located in the C:\out\ folder, the following syntax would be used:
ConvertXLS.EXE /S"C:\in\*.CSV" /T "C:\out\*.txt" /C21 /F6 /M2 /N"^^44^2^Profile142" /R /V
The /G switch can be used to tell ‘Convert XLS’ to simply place each output file in the same folder as each input file. Therefore the command line above is equivalent to the command line below:
ConvertXLS.EXE /S"C:\in\*.CSV" /G /C21 /F6 /M2 /N"^^44^2^Profile142" /R /V
You may simply want to convert a whole folder and its subfolders and place the output into a separate folder/drive. In which case use this syntax:
ConvertXLS.EXE /S"C:\in\*.CSV" /T "C:\Out\*.txt" /C21 /F6 /M2 /N"^^44^2^Profile142" /R /V
This is identical to the first example of Example 1, however this time we don’t specify each column width, rather, we allow ‘Convert XLS’ to automatically size the columns to fit all the data. Notice the only change is in the /N switch.
ConvertXLS.EXE /S"C:\in\input.CSV" /T "C:\out\out.txt" /C21 /F6 /M2 /N"^^44^0" /V
Of course the example immediately above can be adapted to do whole folders and subfolders similar to what we did in Example 1.
In this case we use MS Excel to convert from a CSV file to a Fixed Width Text file. Notice that when using the ‘MS Excel’ conversion method, we can’t specify each column width and this will be a slower conversion.
ConvertXLS.EXE /S"C:\in\input.CSV" /T "C:\out\out.txt" /C21 /F6 /M1 /N"^^44" /V
Sheet: Use "*" or "" for all sheets. You can use names of sheets, or the numeric index. If using numeric indices, you can specify ranges of sheets (i.e. "1,4,10-20" and "4-10,9" etc.).
Range: Not used in these examples. You could optionally specify a range; say if you only wanted to convert a portion of the input file. Use the same syntax as an Excel range (e.g. A1:B10, B:B).
DelimChar: is for specifying the ASCII value of the delimitation character used in a CSV file. 44 for comma, 124 for Bar "|", 9 for the tab etc.
FixedWidth: 'Convert XLS' Conversion Method only (/M2). Here you can specify how to import/export a fixed width text file. The following numeric values are valid:
0 = Auto size column widths to fit all data (Default)
1 = Use same widths as specified in the Excel file
2 = Use widths specified by the Profile. Widths can be specified in the user interfaces Fixed Width Text Profile Editor.
Profile = If you are specifying a fixed width text profile to use do it with this parameter. Use the Fixed Width Text Profile Editor to generate a profile. The full path to the txt file could be used. As an example if you want to specify to convert sheets called 'Apples' and 'Oranges', and use the range "A2:B20" and a fixed width text file profile named MyFixedWidth you would do so like this:
Note: It is highly encouraged that you use the Verbose (/V) switch initially to see what the status of your conversion is and to help you perfect your command line. When in verbose mode the program will tell you what went wrong or right with your command line using message boxes.