Open A File In Vbscript

[Solved] Open A File In Vbscript | Vb - Code Explorer | yomemimo.com
Question : open a file in vbscript

Answered by : bamboom

CreateObject("WScript.Shell").Run("""C:\Downloads\file.png""")
'make sure that there are 3 pair of quotes. 1 pair of quotes for the path and 2 pairs of quotes outside of that so that it doesn't error.

Source : | Last Update : Sun, 05 Jun 22

Answers related to open a file in vbscript

Code Explorer Popular Question For Vb