I don't think that will work because im running LT....I can not supress the dialog box. When selecting the dsd file. Which is why I had to use sendKey. because of using LT I had to manually set everything...here is my VBS so far
Code:
'PLOT to DWF for intranet
'-------------------------------------------'
Option Explicit
Dim objShell
Set objShell = CreateObject("WScript.Shell")
'wait for computer to wake from sleep mode
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
'open ACAD
objShell.Run Chr(34) & "%PROGRAMFILES%\AutoCAD LT 2005\aclt.exe" & Chr(34)
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
'run publish command using plot setup
objShell.SendKeys "publish"
objShell.SendKeys "{enter}"
Wscript.Sleep 2000
objShell.SendKeys "{tab}"
objShell.SendKeys "{tab}"
objShell.SendKeys "{enter}"
Wscript.Sleep 2000
objShell.SendKeys "N:\Publish_script\intranet_plot_setup.dsd"
objShell.SendKeys "{enter}"
'verify publish settings
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
objShell.SendKeys "%o"
objShell.SendKeys "%s"
objShell.SendKeys "{enter}"
Wscript.Sleep 500
objShell.SendKeys "%p"
'waiting for all pages to plot
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
Wscript.Sleep 30000
'close acad without saving
objShell.SendKeys "quit"
objShell.SendKeys "{enter}"
objShell.SendKeys "n"
objShell.SendKeys "{enter}"
'end of script
WScript.Quit