Gammadyne Corporation

String-O-Matic Technical Support

Frequently Asked Questions


1.  How are newlines represented?
2.  How can a string be deleted?
3.  Error: Cannot create a file when that file already exists.
4.  How can null characters be removed?
5.  Is it possible to recursively enter subfolders?
6.  Does String-O-Matic work on Word/Access/Excel/PDF files?
7.  How can I run a project from the command-line or a batch file?


If you still can't solve the problem, you may contact our technical support department.  However, please be aware of the following:
  • Email support is unlimited and free.  Telephone support must be approved and scheduled in advance.
  • Technical support can assist with the software's configuration, but within limits.  Sometimes configuration requires intimate knowledge of your business and may necessitate a Systems Analyst.
  • Technical support is staffed Monday through Friday, 10:00am - 6:00pm Central Time (GMT-6:00).  Of course, you can send us email any time.

Click here to send an email to Gammadyne Technical Support.  We value your feedback and appreciate your interest in our software! 





Answers

1.   How are newlines represented?
In "Single String With Multiple Lines" mode, simply press the Enter key.  Otherwise, to represent a newline, first set the "String Encoding" setting (on the Options folder) to "URL".  Then, use this string wherever you wish to represent a carriage return/linefeed pair:

%0D%0A

Notes:
  • The "%0D" represents the carriage return, which is ASCII code 13 (0D in hexadecimal).
  • The "%0A" represents the linefeed, which is ASCII code 10 (0A in hexadecimal).
  • On the Windows platform, a carriage return should almost always be followed by a linefeed.
  • More information on newlines here.




2.   How can a string be deleted?
A string can be deleted by specifying an empty replacement string.  However, String-O-Matic will balk if the number of search strings does not match the number of replacement strings.  To avoid this, specify one last search string that is a random series of characters (that does not appear in the files), along with a bogus replacement string.

Alternatively, you can choose the "Single String With Multiple Lines" mode, leaving the replacement string empty.  However, you will only be able to delete one string at a time using this method.




3.  Error: Cannot create a file when that file already exists.
Disable Norton Anti-Virus Auto-Protect.




4.  How can null characters be removed?
Use the text "%00" to represent a null character.  Leave the replacement string empty.  Set the "String Encoding" (on the Options tab) to "URL".  "Whole Word" should be unchecked.




5.  Is it possible to recursively enter subfolders?
Yes, simply check the "Recursively Enter Subfolders" box on the Files branch.

Alternatively, if you want only a single line of the file specification to enter subfolders, add the "/s" switch to the end of that line.  Here's an example:

c:\work\*.cpp /s





6.  Does String-O-Matic work on Word/Access/Excel/PDF files?
Sorry, these files are in a proprietary format that won't work.




7.  How can I run a project from the command-line or a batch file?
The command-line would look like this:

"c:\Program Files (x86)\String-O-Matic\som.exe" /r "c:\projects\example.fsr"



This example assumes the following:
  • String-O-Matic is installed in "c:\Program Files (x86)\String-O-Matic".
  • The filepath to your project is "c:\projects\example.fsr".

There are some optional command-line switches you may find useful:

/cForces String-O-Matic to automatically close after the operation is finished.  However, if the project contains errors, this switch is ignored (unless the "/i" switch is also specified).  The "/c" switch will also eliminate the "Are you sure?" prompt before a search and replace operation begins.  Furthermore, the "/c" switch will prevent the log from being displayed.
/dOverrides the Source Files Folder for the Source Files.  The /d switch must be immediately followed by the new path inside quotes.
/fOverrides the Source Files on which the operation is performed. The /f switch must be immediately followed by the new file specification inside quotes. Semi-colons can be used to separate multiple filenames.
/iSuppress the reporting of error messages.
/logOverrides the Log File. The /log switch should be immediately followed by the log filename, inside quotes. To disable logging, there should be nothing inside the quotes.
/minForces String-O-Matic's window to be initially minimized.
/replaceForces the operation to be a search and replace. The project's "Replace with:" option is ignored.
/searchForces the operation to be a search operation. The project's "Replace with:" option is ignored.