change active configuration without opening SolidWorks

Now i am troubled in changing the active configuration without opening SolidWorks. I think it may be worked with the help of SwDocumentManager API, but i have tried much . I still can not solve this problem. Can anybody help me ?SolidworksApi macros