1. Ampersand in filename

Hello everybody,

If an ampersand is used in the fileName the file will not open.

How can I fix this.

Change the file name? How if not manually in windows?

Example:

sequence fileName 
 
FileName="e:\\stocks\\web\\Scottrade - Quotes & Research.htm" 
 
fn=open(FileName,"r") 
 
?fn 

gives fn=-1

FileName="e:\\stocks\\web\\Scottrade - Quotes + Research.htm" 
 
fn=open(FileName,"r") 
?fn 
 

gives fn=3 (works ok)

I'm using Ver. 3 Don Cole

new topic     » topic index » view message » categorize

2. Re: Ampersand in filename

dcole said...

If an ampersand is used in the fileName the file will not open.

How can I fix this.

Change the file name? How if not manually in windows?

Example:

sequence fileName 
 
FileName="e:\\stocks\\web\\Scottrade - Quotes & Research.htm" 
 
fn=open(FileName,"r") 
 
?fn 

gives fn=-1

FileName="e:\\stocks\\web\\Scottrade - Quotes + Research.htm" 
 
fn=open(FileName,"r") 
?fn 
 

gives fn=3 (works ok)

I'm using Ver. 3 Don Cole

if you are trying to open for reading an existing file, try the 8.3 name "e:\\stocks\\web\\SCOTTR~1.HTM"

new topic     » goto parent     » topic index » view message » categorize

3. Re: Ampersand in filename

It works fine here. What version of Windows? (XP here) Are you sure you are not trying to open "Quotes & Research.htm" when the actual filename is "Quotes + Research.htm" or "Quotes&Research.htm" or "Quotes & Research.htm"?

Pete

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu