Sub RunWedge()
' the shell statement passes
a wedge config file as a command line arg.
' This causes the wedge to automatically load the config file and
activate itself.
x% = Shell("c:\winwedge\winwedge.exe c:\winwedge\ddetest.SW3")
TwoSecsFromNow = TimeValue(Now) + TimeValue("00:00:02")
Do While TimeValue(Now) < TwoSecsFromNow
DoEvents ' give wedge time to load
Loop
End Sub ' WinWedge
should be loaded now
|