Quantcast
Channel: fnr.exe - Find And Replace Tool
Viewing all 144 articles
Browse latest View live

New Post: Find and Replace With Uppercase

$
0
0
I don't know if there's a more direct method, but several text editors and word processors have the ability to change the case of text. So paste text into text editor, change case, paste back. May be worthwhile instead of retyping for long strings. One suitable text editor is Notepad++ (Edit dropdown menu, Convert case [of selected text] to UPPERCASE). There's also a Web site, http://www.textcaseconverter.com/, and probably programs that'll do just this one job.

Created Unassigned: FNR.EXE V 1.7 Does not find any results anymore. [49]

$
0
0
Hi - fnr.exe v 1.7.0.0 was working fine and suddenly stopped returning results on a "Find Only".

How do I fix this? Is there a way to clear the Cache? Please advise and Thank you.

Commented Unassigned: FNR.EXE V 1.7 Does not find any results anymore. [49]

$
0
0
Hi - fnr.exe v 1.7.0.0 was working fine and suddenly stopped returning results on a "Find Only".

How do I fix this? Is there a way to clear the Cache? Please advise and Thank you.
Comments: If the find and replace quits returning good results then do the following: 1. Run RegEdit 2. Goto HKEY_CURRENT_USER\Software\ENTech Solutions 3. Delete the following Folder "ENTech Solutions" Launch the fnr,exe and it should work again.

Commented Unassigned: batch mode several lines are not wroking [44]

$
0
0
Hi,

nice tool, but when I use it as batch mode in a cmd line I need to put wait state between several replaced lines

f.e. this is not working .. only the first line i replaced:

*****************
call:replace_ini "C:\Program Files (x86)\myfolder" "file.ini" "PosX=[0-9]+" "PosX=1678"
call:replace_ini "C:\Program Files (x86)\myfolder" "file.ini" "PosY=[0-9]+" "PosY=0"
call:replace_ini "C:\Program Files (x86)\myfolder" "file.ini" "SizeX=[0-9]+" "SizeX=898"
call:replace_ini "C:\Program Files (x86)\myfolder" "file.ini" "SizeY=[0-9]+" "SizeY=1049"
goto :eof

:replace_ini
:: %1 is the path
:: %2 is the file
:: %3 is the input string
:: %4 is the string to put
"M:\scripts\fnr.exe" --cl --dir %1 --fileMask %2 --useRegEx --find %3 --replace %4 --silent
goto:eof
*********************
if the called process is the one here than its working:
:replace_ini
:: %1 is the path
:: %2 is the file
:: %3 is the input string
:: %4 is the string to put
"M:\scripts\fnr.exe" --cl --dir %1 --fileMask %2 --useRegEx --find %3 --replace %4 --silent
ping -n 8 localhost >nul
goto:eof

Only difference is that I add a short wait after executing the command
I guess the file close process need some time. Can you do something in upcoming version to have the end of the exe clean with the file closed !

Thx a lot for the nice tool !

Comments: Hi, Has anyone any comments on this?

Created Unassigned: Not recognizing --fileMask [50]

$
0
0
What am I doing incorrectly. I have tried with and without quotes around *.* and *.htm

N:\cd\info\cwmanual>fnr --cl --find "http://www.moga.mo.gov/statutes/C000-099/0580000452.HTM" --replace "http://www.moga.mo.gov/mostatutes/stathtml/0580000452.HTM" --dir "N:\cd\info\cwmanual\" --fileMask *.htm --includeSubdirectories
Find And Replace
Copyright (C) 2014 ENTech Solutions

ERROR(S):
--fileMask required option is missing.

Reviewed: 1.7 (Dec 10, 2014)

$
0
0
Rated 4 Stars (out of 5) - i think this great tool, i have word a,b,c, in find how to insert? 1 word great work, but more than not work

Reviewed: 1.7 (Dec 11, 2014)

$
0
0
Rated 5 Stars (out of 5) - I find fnr a very flexible and powerful tool. In particular, the ability to paste multi-line text in in GUI mode, then generate a command line to do the same in batch mode, is very useful. I use it with the VMX file for a VMware Player virtual machine; the batch file calls fnr to replace 4 lines that toggle the VM between persistent mode (saves everything done in the session) and non-persistent mode (reverts to original state; all virus and other damage, and everything the user did, vanishes without trace). The current v1.7 is the only one I have used.

Reviewed: 1.7 (Dec 11, 2014)

$
0
0
Rated 5 Stars (out of 5) - I find fnr a very flexible and powerful tool. In particular, the ability to paste multi-line text in in GUI mode, then generate a command line to do the same in batch mode, is very useful. I use it with the VMX file for a VMware Player virtual machine; the batch file calls fnr to replace 4 lines that toggle the VM between persistent mode (saves everything done in the session) and non-persistent mode (reverts to original state; all virus and other damage, and everything the user did, vanishes without trace). The current v1.7 is the only one I have used. Minor command-line and GUI point I would change: it would be a little better to have the option to enter a single pathname to change a single file, instead of always both directory and filename (accept filename C:\TMP\ABC.TXT with no dir, as an alternative to dir=C:\TMP and file=ABC.TXT). It took me a bit of effort to find that dir="%CD%" is the current directory, not dir="." or just omit the dir parameter.

Created Unassigned: fnr doesn't fit on entire screen [51]

Edited Unassigned: fnr doesn't fit on entire screen [51]

$
0
0
yeah, that's it,you might wanna check out the attachment below

Edited Unassigned: fnr doesn't fit on entire screen [51]

$
0
0
yeah, that's it,you might wanna check out the attachment at below

Edited Unassigned: fnr doesn't fit on entire window [51]

$
0
0
yeah, that's it,you might wanna check out the attachment at below

New Post: replace line that begins with...

$
0
0
Just wanted to follow up on this request again. Need to fine and remove an entire line that beings with NRC

Reviewed: 1.7 (Dec 29, 2014)

$
0
0
Rated 5 Stars (out of 5) - I needed to find a long text string in several .txt files, and replace with other text. Surfed google, found this...downloaded.. and ran it. Worked like a charm first time. Mission accomplished.

New Post: find hex/NUL and replace

$
0
0
as bcp outputs sql-server tables or views as text-files there is a problem with empty fields which gives a NULL-character into the output file.
These chars cannot be seen with notepad but may be removed with it by open and save as annother filename.
Notepad++ shows these weird chars as well.
it would be cool if fnr.exe may find these hex/NUL chars and replace them with a space for example.

New Post: Replacing some strings in an xml-file

$
0
0
bcp exports some data out of sql-server. To format the output one may generate a so called format.file, like: bcp "sqlserver_table" format nul -c -x -f "format_file.xml" -S SERVER -T
But now i need annother formating and want to change "CharTerm" TERMINATOR="\t" MAX_LENGTH and replace it with "CharFixed" LENGTH
...all in a batch.

fnr.exe generates the follwing command line:
"L:\Output\fnr.exe" --cl --dir "L:\Output\Output_FormatFiles" --fileMask "FormatFile2." --excludeFileMask ".bak" --find """CharTerm"" TERMINATOR=""\t"" MAX_LENGTH" --replace """CharFixed"" LENGTH"

This do not run!
1) If i remove then " in "L:\CoCo\Camp_Output\Camp_Output_FormatFiles\fnr.exe" the tools begins to work..
2) It finds only "CharTerm" and replaces it with "CharFixed" in GUI it works correct...

New Post: Remove all content after the closing tag

$
0
0
Hello,
A virus infected all .html and .htm files on my HD, by inserting a portion of bad code after the closing </html> tag, in ~20000 files.

I would like to run a search and replace command that deletes everything after the </html> tag.

Would anyone be so kind to indicate a proper formula for doing that, if that's possible using this software.

Thanks a lot!

New Post: Regex that works in VS2010 does not work in fnr.exe

$
0
0
Hi All

I'm in the process of cleaning up some code after converting C comments to C++ comments.

One example I'm trying to handle has the form: "//<other chars> " where the user has decorated a comment with a box of '*'.

In VS2010 I can use the regex "//*{ .*}*$" and it will find the exact lines I need.

However fnr seems to stumble over the '$' which ensures that matches must end in '*'. And if I remove the '$' fnr matches comments with '*' somewhere inside the comment which is not what I want.

Created Unassigned: Out of memory Windows 8.1 [52]

$
0
0
I'm getting an out of memory error when I process thousands of files, any idea how I can prevent this?

New Post: "Find" with Regular Expression and "Replace" with escape characters

$
0
0
Hi,

I was trying to find 4 lines with the following Regular Expression:
\t+record(\"LEVEL1\") record_key(\"ABC\")\W+
\t+record(\"LEVEL2\") record_key(\"099\")\W+
\t+record(\"LEVEL3\") record_key(\"ABC_999\")\W+
\t+record(\"LEVEL4\") record_key(\"GB\")

and replace it with the following 4 lines:
record("LEVEL1") record_key("XYZ")
record("LEVEL2") record_key("088")
record("LEVEL3") record_key("ABC_888")
record("LEVEL4") record_key("GB")

I checked the "Use regular expressions" option and could locate the 4 lines. However, the "Replace" action actually put the two characters "\n" in the text instead of line breaks.
So, I also checked the "Use escape chars" option and press Find Only. A red exclaimation mark appeared beside the Find box stating "Unrecognized escape sequence \W".
It seemed once I checked the "Use escape chars", the program will treat the Regular Expression in the Find box as escape characters.
So my questions is:
Could I find with Regular Expression and "Replace" with escape characters?
Viewing all 144 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>