beyond compare (4) how do I ignore case in file content when comparing folders - beyondcompare4

In beyond compare how do I ignore the comparison of some words that are contained in file inside the folder.
exemple:
in left side, i have a file in a folder that contains the word 'Hello'
in the right side, at same place, the file contains 'Tello'
I would like this to be an equal file.
also, how to ignore case in file content when performing a folder comparison. (not when doing file comparison) => in all files contained in the folder

To hide text differences in Beyond Compare 4's Text Compare, see the article Define Unimportant Text in Beyond Compare on Scooter Software's website.
To ignore differences in text file content in the Folder Compare, double click a pair of files to open them in the Text Compare. Follow the instructions at the above link, but change the dropdown of the Session Settings dialog from Use for this view only to Use for all files within parent session before you click OK. Then close the Text Compare.
In the Folder Compare, click the Rules toolbar button (referee icon). In the Comparison tab, check Compare Contents and select Rules-based comparison. This will compare the text contents of files in the Folder Compare using the settings you defined in the child Text Compare.

I got case insensitivity when comparing *.txt files using "view"->"Ignore Unimportant Differences"

Related

taking an excel file as a input data from user in julia

I want to ask from users to load an excel file as an input data. this process must be done by opening a browsing window to select excel file.
what can I do?
You can use open_dialog_native from Gtk.jl.
julia> open_dialog_native("Choose the input Excel file", GtkNullContainer(), ("*.xlsx",))
"/path/to/myfile.xlsx"
It opens the file chooser interface appropriate to the user's OS, and once the file is chosen, returns the chosen file's full path as a string.
The ("*.xlsx",) is a tuple that constrains what type of files are shown by default in the file chooser. (The GtkNullContainer() argument just specifies that you're not running this as part of an existing GTK app.)
Documentation here

Comparing two files using BeyondCompare - check for content

I have two text files containing many lines of data (they are just some linux paths). The order of the paths are different in both files. I need Beyond Compare to compare the files based on content. Right now, it is checking line by line and pointing out errors if the same content is not present in the corresponding lines. I want beyondcompare to go through the entire file before saying that some path is missing. How to do it?
You can make Beyond Compare 4 sort the files before comparison. Open the files in the Text Compare, then click the dropdown on the right side of the Format toolbar button and select Sorted.

VBA Word - Save As dialog with initial filename

I have a vba macro that makes some changes to the current document and determines a filename that should be used for it - if the document isn't saved as that filename yet the user should be prompted to do so (but should be able to alter the default setting).
I found two possibilities that both are not perfect (I'd need a mix of those two).
First approach:
Application.Dialogs(wdDialogFileSaveAs).Show
Opens the Save As dialog and lets you change the format and name of the file, but the default file name is the old filename or the title (up to the first special character like blank or -) of the document (in case it wasn't saved yet - changing the title of the document is of little help as the suggested filename will contain -). Is it possible to change the initial filename shown in the Save As dialog?
Second approach:
Application.FileDialog(msoFileDialogSaveAs).InitialFileName = filename
Dim choice As Integer
choice = Application.FileDialog(msoFileDialogSaveAs).Show
If choice <> 0 Then
filename = Application.FileDialog(msoFileDialogSaveAs).SelectedItems(1)
Call ActiveDocument.SaveAs(filename:=filename, FileFormat:=wdFormatDocumentDefault)
End If
The FileDialog will choose a filename only, so we have to save it explicitely.
This approach will show the filename I want, but if the user changes the suffix to e.g .pdf the file will still be saved in the .docx format (using the suffix .pdf). I didn't plan to have huge distinction of cases here for the rare case the user needs a different format than .docx. Is there an easy way to save the file in the correct format using this second approach?
Have you tried replacing the Call ActiveDocument.SaveAs line with
Application.FileDialog(msoFileDialogSaveAs).Execute
Window's setting "View tab - File name extension" maybe affecting this.
Turn it on to see if it will fix it.

What types of files can CLIPS open

I am working on developing an expert system using CLIPS. For the case at hand I need to read data from a excel file. How do I do that? Or what solutions do you propose? Thank you in advance.
You can use the open command to open a file for reading in either text or binary mode. If you opened a xlsx file in binary mode, you could use the get-char function to retrieve individual characters from the file. There's no built-in functionality for parsing a xlsx file, so you'd have to add code to do the parsing and create appropriate CLIPS values from the data. If possible, it would be easier to save your excel file as tab-delimited text. If each cell is a valid CLIPS token, then you can use the read function to retrieve the cell values. If each cell is not a valid CLIPS token (for example, a cell representing a string that has spaces but lacks quotation marks at the beginning and end), then you need to use the readline function to grab an entire row of data and then use some of the string functions to locate the tabs and split the string into valid tokens.

document migration name extraction

I have a scenario and would like to see if anyone has any suggestions on how I should tackle it. Basically I have a directory full of files, document names consist of [Code]-[number]-[text]
CODE - A generic 3 letter code.
NUMBER - a number generally 4 - 5 digits in size.
TEXT - original document name (Before it was dumped).
CODE, NUMBER and TEXT are separated by a colon (-). Number always starts at the 5 character.
I would like to somehow scan that directory and extract the number from the filename, I would then like to compare that number to a field in a database (SQL query fairly straight forward, could also extract as raw text) If the number matches the number in the database I would like to separate those files.
If I need to clarify anything please ask. I wasn't sure if this site is appropriate for my query.
Open the root folder, click in the file explorer path (in open space off to the side so the whole path gets highlighted), type cmd and hit enter to open a command prompt from that folder location.
Type: dir /b /s > filelist.txt to get a list of all file names. You can exclude /s if you don't need/want to dig down into subfolders.
I'd paste that into excel, if you have 2013 you can just start typing the part you want to extract, after you type the full first line when you start typing the next line it will recognize the pattern and you can just hit enter to fill down.
Otherwise, use Data > Text to Columns and specify - as a delimiter.
Likewise you could just import the filelist, separate them in SQL using SUBSTRING() or similar. When you have your matching filenames you can just use some concatenation to build a COPY or MOVE .bat file, pretty easy in SQL or Excel.