the custom files folder
from
WinCustomize Forums
I need help using wshShell.Run or WshShell. Exec to load a pdf or other document from the custom files folder. This is for a standalone exe (a gadget).
Basically, I've tried:
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("%exedir%\Readware Technologyo.pdf")
Set WshShell = Nothing
and several variations on oExec, e.g.:
WshShell.Exec("%exedir%\Techo.pdf")
WshShell.Exec("%objectdir%\Techo.pdf")
WshShell.Exec("%objectdir%\\Techo.pdf")
I would like to include the file as a custom file because I can distribute it that way as an executable without having to install anything.
I also tried the Run command of Wscript. I know its my file construct but I don't know how to fix it. It seems one of these should work. Only with a double slash do I get an error "file not found".
-Ken
Basically, I've tried:
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("%exedir%\Readware Technologyo.pdf")
Set WshShell = Nothing
and several variations on oExec, e.g.:
WshShell.Exec("%exedir%\Techo.pdf")
WshShell.Exec("%objectdir%\Techo.pdf")
WshShell.Exec("%objectdir%\\Techo.pdf")
I would like to include the file as a custom file because I can distribute it that way as an executable without having to install anything.
I also tried the Run command of Wscript. I know its my file construct but I don't know how to fix it. It seems one of these should work. Only with a double slash do I get an error "file not found".

-Ken