trouble with Call Shell(explorer.exe & thePath) -
02-08-2004
, 07:32 AM
Call Shell(explorer.exe & thePath, vbNormalFocus) opens the Windows folder
with pathname thePath.
My trouble is the folders I'm trying to open have a comma in their name, as:
thePath = "C:\My Documents\firstword, secondWord"
With that stinking comma in the path, Call Shell(explorer.exe & thePath,
vbNormalFocus) doesn't open the folder, it fails, and gives an alert: 'The
path 'secondWord' does not exist or is not a directory'.
Is there a fix? (There are thousands of folders, so taking the comma out of
the folder names isn't a practical option.)
GAKane |