Support files & folders w/commas when using Shell()

G

gem

Explorer treats filenames containing commas as separate filespecs. I need to
launch external documents that contain one or more commas in the name. Using
Shell(), the filespec is parsed into multiple documents whether I launch
using Shell ("Explorer filenamewithcommas") or Shell("Winword
filenamewithcommas").

FileExists("filenamewithcommas") and DirExists("folderwithcommas") work fine
and recognize the file or folder.

An example of a filename with commas would be "Smith, Thomas-Bio".

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...f5b728b6&dg=microsoft.public.word.vba.general
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top