@search[] function

Oct 18, 2008
339
2
Greetings --

I have a btm file that takes as input a filename.

The code then used the @search[] function to find the file. For the most part
this works, fine, except for this filename

FPR R&D template 2008.doc

Is there anything I can add to the btm file to process this name?
 
Jun 2, 2008
42
0
Greetings --

I have a btm file that takes as input a filename.

The code then used the @search[] function to find the file. For the most part
this works, fine, except for this filename

FPR R&D template 2008.doc

Is there anything I can add to the btm file to process this name?

The problem is the ampersand character & which is interpreted as a command separator. You can solve this several ways:

1. Temporarily set your command separator to something else:
Code:
  setdos /c~
  ::do work here
  setdos /c&

2. Escape the ampersand in your input (default escape character ^):
Code:
  yourbatchfile.btm "FPR R^&D template 2008.doc"

3. Turn off special characters:
Code:
  setdos /x-5
  ::do work here
  setdos /x+5


- Josh
 
May 20, 2008
11,517
102
Syracuse, NY, USA
function

On Mon, 20 Oct 2008 19:14:32 -0500, "JP Software Forums"
<neil@jpsoft.com>,fpefpe <> wrote:


>Greetings --
>
>I have a btm file that takes as input a filename.
>
>The code then used the @search[] function to find the file. For the most part
>this works, fine, except for this filename
>
>FPR R&D template 2008.doc
>
>Is there anything I can add to the btm file to process this name?

Perhaps quotation marks? This works here.

v:\> echo "%@search["FPR R&D template 2008.doc"]"
"V:\FPR R&D template 2008.doc"

For you what fails and how does it fail?
 
Oct 18, 2008
339
2
Re: function

On Mon, 20 Oct 2008 19:14:32 -0500, "JP Software Forums"
<neil@jpsoft.com>,fpefpe <> wrote:




Perhaps quotation marks? This works here.

v:\> echo "%@search["FPR R&D template 2008.doc"]"
"V:\FPR R&D template 2008.doc"

For you what fails and how does it fail?

Greetings --

Thanks for the suggestions

/Frank Esposito
 
Similar threads
Thread starter Title Forum Replies Date
Frank is the search-function in VIEW working? Support 2
Jeff Everything search doesn't work Support 16
old coot Is there a consistent way to do a single-key repeat search in the edit/debug IDE? Support 5
samintz How to? Search for %(command) in Help? Support 1
Joe Caverly Quick Search in eWriter Help Support 1
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
fpefpe How to? gosub and label search Support 4
vefatica Command history search is off Support 7
D Directory History Window with wildcard search Support 3
L LIST's pop-up search loses focus in a Windows Terminal window Support 15
D Faster string search Support 8
R How to? Dir specific file search patterns with spaces in the pathnames? Support 6
Joe Caverly Pipe into VIEW and search Support 12
G Extended directory search not working Support 4
rps How to? @search problem Support 2
M Documentation Q.Search doesn't support selection? Support 1
vefatica Keyword - instant search? Support 1
vefatica WAD Help Search broken? Support 3
Joe Caverly LIST /T (search for Text) Support 2
M Problem with Extended Search and non-ASCII characters in directories names Support 3
H FuzzyCD: JPSTREE vs. Everything Search Support 1
J Extended directory search has stopped working Support 9
fpefpe Documentation Search order Support 2
J Extended directory search - cure by renaming tcmd.ini Support 10
S Trouble accessing results of forum search Support 2
J Fixed IDE search keys don't work in TCMD 13.01.32 Support 3
G Find files but ignore file extension in search Support 2
J Initialise; Alias; Extended directory search Support 2
deleyd How does TCC search for a command? Support 2
J Extended directory search - spaces in names Support 5
J How does tcc search for perl*.dll Support 1
T Fixed Function @timer[] does not work as required Support 6
vefatica Documentation Function parameters Support 0
Jay Sage Documentation Function @DRIVE Missing in Help Lists Support 0
Joe Caverly How to? Get name of current LIBRARY function? Support 4
x13 WeekNum function? Support 3
Joe Caverly No blank line in TEXT...ENDTEXT in a LIBRARY function Support 8
cgunhouse Ctrl-C from within a library function Support 6
C email[string] function Support 10
R FUNCTION to count NUMBER of files matching a pattern and specific length/not length Support 4
Dick Johnson Using the @instr function Support 5
vefatica '}' in a library function? Support 3
D Can the argument to RETURN be a function expansion? Support 3
J Trouble with @full[] function. Support 3
Fross Quick Function Question Support 17
vefatica Quoting @Function parameters? Support 0
Joe Caverly Debugging a LIBRARY function Support 10
Steve Pitts Documentation @CAPI function summary Support 0
x13 %x$ in function Support 3
thorntonpg @eval function, interesting results any explanation? Support 3

Similar threads