jagan_peddada Posted February 12, 2010 Posted February 12, 2010 Hi, I want to open autocad drawing from a web browser. using the below commad acad.exe > /b >.scr Can we use VBScript/Javascript? Quote
MSasu Posted February 12, 2010 Posted February 12, 2010 This HTML code may help you – please take care that is required to use short form (MsDOS 8.3 standard) for the path. <html> <head> <script> function LaunchAutoCAD() { ShellObject = new ActiveXObject("WScript.Shell"); ShellObject.run("C:\\Progra~1\\AutoCAD\\acad.exe D:\\MyDWG\\test.dwg /b ScrToRun"); return true; } </script> </head> <body> <input type="button" value="Launch AutoCAD" onClick="return LaunchAutoCAD()"> </body> </html> Regards, Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.