Feb 23, 2007 #1 bnothos Programmer Nov 6, 2003 24 CA I'm trying to get a .Run to work but my path has brackets in it ie: "C:\Program Files\foo\foo (FOO)\foo.exe" It chokes on the brackets. How do I escape them or do something so they will be correctly interpreted as part of the path? Thanks
I'm trying to get a .Run to work but my path has brackets in it ie: "C:\Program Files\foo\foo (FOO)\foo.exe" It chokes on the brackets. How do I escape them or do something so they will be correctly interpreted as part of the path? Thanks
Feb 23, 2007 1 #2 dm4ever Technical User Jul 3, 2006 991 US I don't think the () would cause an issue. If anything, it would be the space. Try: Code: objShell.Run Chr(34) & "C:\Program Files\foo\foo (FOO)\foo.exe" & Chr(34) -------------------------------------------------------------------------------- dm4ever My philosophy: K.I.S.S - Keep It Simple Stupid Upvote 0 Downvote
I don't think the () would cause an issue. If anything, it would be the space. Try: Code: objShell.Run Chr(34) & "C:\Program Files\foo\foo (FOO)\foo.exe" & Chr(34) -------------------------------------------------------------------------------- dm4ever My philosophy: K.I.S.S - Keep It Simple Stupid
Feb 23, 2007 Thread starter #3 bnothos Programmer Nov 6, 2003 24 CA Excellent thanks! Strangely if I moved the executable 1 directory up so I had no brackets in the path it worked so I assumed it was the brackets... This works though! Upvote 0 Downvote
Excellent thanks! Strangely if I moved the executable 1 directory up so I had no brackets in the path it worked so I assumed it was the brackets... This works though!