big problem with architectural desktop educational banner

Discussion in 'AutoCAD' started by Eldon Tyrell, Jun 15, 2004.

  1. Eldon Tyrell

    Eldon Tyrell Guest

    hello all,

    we have a big problem at my company.

    someone here used a home copy of architectural desktop educational version to create work drawings, then brought the files into work. when these files are opened in architectural desktop, they display a warning message stating they were created with the educational version.

    since that time, in approximately may 2003, many DWG files on our server have become contaminated with the "educational version" virus. the number of files that are potentially contaminated, based on access times after may 2003, is approximately 12,000.

    we can make this problem go away by opening all 12,000 DWG files, saving them as an older version DXF, then resaving as DWG. but, that will take days and days even running automated all night.

    so, I need vba code that will allow us to open each file in architectural desktop, detect if the educational version warning dialog box is displayed, act accordingly if it is, and close the file if it is not. the problem is that the dialog box apparently pops up with a required yes or no answer BEFORE an error is generated in VBA. the code is as follows:

    Sub doit()

    On Error Resume Next
    Documents.Open "C:\temp\infected.dwg", True
    If Err Then
    MsgBox Err.Number & " " & Err.Description
    Err.Clear
    End If

    End Sub

    so, what I need is code that detects if a new window is displayed. I guess I need a hook that will intercept a windows call to display
    the new window. then if a new window is displayed I can use sendkeys to say "yes" to the window.

    can anybody help, or suggest another way to solve this problem?

    please post replies here or if necessary my e-mail is:

    w'h'e'y'w'a'r'd'a't'b'e'l'l's'o'u't'h'd'o't'n'e't (without the
    apostrophies)

    thanks!
     
    Eldon Tyrell, Jun 15, 2004
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.