Message 1 of 11
Closing a program that is open
Not applicable
04-22-2005
12:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If you havent read my last post I'm working on a program and part of what it
does is opens and closes ACAD for the user. I'm having trouble getting this
VBS to close ALL instancess of CAD. Would anyone have an ideas on how to do
this?
I thought it might be as simple as
>CODE
Dim WshShell
' Create a WSH Shell object.
Set WshShell = _
CreateObject("WScript.Shell")
' Close AutoCAD application.
WshShell.close _
"""C:\Program Files\Autodesk Architectural Desktop 3\acad.exe""", _
1, _
True
>CODE
But i'm obviously wrong
does is opens and closes ACAD for the user. I'm having trouble getting this
VBS to close ALL instancess of CAD. Would anyone have an ideas on how to do
this?
I thought it might be as simple as
>CODE
Dim WshShell
' Create a WSH Shell object.
Set WshShell = _
CreateObject("WScript.Shell")
' Close AutoCAD application.
WshShell.close _
"""C:\Program Files\Autodesk Architectural Desktop 3\acad.exe""", _
1, _
True
>CODE
But i'm obviously wrong