Filename with spaces running WScript.Shell

PHOTO EMBED

Thu Jan 12 2023 09:16:49 GMT+0000 (Coordinated Universal Time)

Saved by @paulbarry

 stFileName = Chr(34) & stFileName & Chr(34)
            CreateObject("WScript.Shell").Run (stFileName)
content_copyCOPY

File location must be enclosed in double quotes twice: ""W:/Documents/Sample file.pdf""