set window size in vbscript - TechRepublic
Question
September 2, 2010 at 10:29 AM
mslamen

set window size in vbscript

by mslamen . Updated 15 years, 10 months ago

I have a script that opens a .pdf file on the users machine at startup. How can I set the size of the .pdf so that it always opens the same size. (see the script below)

Dim LaunchDir, FSO, WSHShell, strPDFFile
Set FSO = CreateObject(“Scripting.FileSystemObject”)
Set WSHShell = WScript.CreateObject(“WScript.Shell”)
If FSO.FileExists(“\\Server-HQ\PUBLIC\SCRIPT\goal.pdf”) Then
strPDFFile = “\\server-hq\public\script\goal.pdf”
strPDFFile = Chr(34) & strPDFFile & Chr(34)
wSHShell.Run strPDFFile
End If

Thank you in advance
Mike

This discussion is locked

All Comments