Hello, I am having problems with the following statement:
This statement works fine if my App.Path is C:\. But when my App.Path is C:\Documents and Settings\Administrator\My Documents\ it doesn't work.Code:slAppToRun = ShellExecute(0, vbNullString, "WordPad", App.Path & """\Extension Table.txt""", vbNullString, vbNormalFocus)
I get a message box from word pad telling me:
C:\Documents
Cannot find this file
Please verify that the correct path and file name are given
Is the error because there are spaces in my path string? How can I correct this?
Thanks very much!
~Steph




Reply With Quote