FolderItem.launch does not launch

[quote]dim f as folderitem
f = getopenfolderitem("")
f.launch

Same result - does not launch.[/quote]

Then it’s very likely nothing to do with a space in the file name

Prove that by opening

  • a word doc with no spaces in the filename or path
  • a pdf file
  • a text file
  • a docx file

If the latter 2 open and the word doc does not, then (as has been stated previously), there is a problem with the association of doc files on that machine.

Also check that this really IS a word doc
Dont forget that in Windows, you get ‘hide file extensions for known file types’ set to ‘on’ by default.
That means if you take a PDF file that shows in the browser as ‘MyPDFFile’ and add .DOC to the end,
what you actually get is MyPDFFile.DOC.PDF and windows shows you MyPDFFile.DOC

try this to check the extension, and also to check whether you are opening a shortcut instead of the file

dim f as folderitem f = getopenfolderitem("") If f.ExtensionVisible Then MsgBox("The extension is visible!") Else MsgBox("The extension is not visible!") End If If f.Alias Then MsgBox("The folderitem is an alias.") Else MsgBox("The folderitem is not an alias.") End If msgbox f.name f.launch