Re: Ampersand in filename

new topic     » goto parent     » topic index » view thread      » older message » newer message
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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu