I want to execute any file in the folder "C:\My Documents\" by the codes below.
Call Shell(Environ("COMSPEC") & " /C START C:\My Documents\" & FileName, vbHide)
But failed with following message:
System can't find the object "C:\My".
I think the blank character in the "C:\My Documents\" string caused the problem. Anyone has good ideas, Please tell me. TIA.
Call Shell(Environ("COMSPEC") & " /C START C:\My Documents\" & FileName, vbHide)
But failed with following message:
System can't find the object "C:\My".
I think the blank character in the "C:\My Documents\" string caused the problem. Anyone has good ideas, Please tell me. TIA.