Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening Word/Excel files from Javascript problem

Status
Not open for further replies.

dukeyukon

IS-IT--Management
Joined
Jul 6, 2004
Messages
2
Location
US
I have a javascript function to open up a file based on its extension. If .txt, then open_prog("Notepad", "..absolute path.."). Or if .doc, then open_prog("Word", "..absolute path.."). Problem arises when the folder or file name has a space in it, then the Excel or Word programs won't be able to open the absolute path. Has anyone ever encountered this problem? Any solutions?
 

Put double-quotes around your filename. Failing that, can you post your code?

Hope this helps,
Dan
 
Or replace the space with %20

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top