Set WshShell = CreateObject("WScript.Shell") cmd = """C:\pgsql\bin\pg_ctl.exe"" start -D ""C:\pgsql\pgdata"" -l ""C:\pgsql\pgdata\pgsql.log""" WshShell.Run cmd, 0, False