DWF Viewer (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hyperlink to vbs file

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
468 Views, 4 Replies

Hyperlink to vbs file

I've made a DWF of our office with symbols for the printers. The hyperlink
is to a vbs file that will install that printer.
The thing I would like to avoid is the dialog box for "file download" that
warns you and force you to select Open to have the script run.
Is it somehow possible to do this without the dialog box?
I've tried to changed the security setting and trusted sites and so on but
could not get it to work.
The DWF and the vbs files will be placed on an intranet.
Would it be easier if it is was exe file that would be executed?

vbs file below:
on error resume next
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\EMTNT12\EMTANX03"

Any ideas are welcome.

--
Best Regards, Jimmy B
CAD and Database Developer Manager at www.pharmadule-emtunga.com
Take a look at the trial version of SmartPurger (now for AutoCAD 2004) or
download some freeware at www.jtbworld.com
More on AutoCAD 2004;
www.jtbworld.com/autocad2004.htm
www.jtbworld.com/autocad2004tips.htm
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

I believe the only thing you can do is to wrap your VBS in a CAB file (which
runs the VBS), and the CAB file in an HTML file, then link to the HTML.

"Jimmy B" wrote in message
news:EFE785D9F6E4B7906FBB269E157B3E42@in.WebX.maYIadrTaRb...
> I've made a DWF of our office with symbols for the printers. The hyperlink
> is to a vbs file that will install that printer.
> The thing I would like to avoid is the dialog box for "file download" that
> warns you and force you to select Open to have the script run.
> Is it somehow possible to do this without the dialog box?
> I've tried to changed the security setting and trusted sites and so on but
> could not get it to work.
> The DWF and the vbs files will be placed on an intranet.
> Would it be easier if it is was exe file that would be executed?
>
> vbs file below:
> on error resume next
> Set WshNetwork = CreateObject("WScript.Network")
> WshNetwork.AddWindowsPrinterConnection "\\EMTNT12\EMTANX03"
>
> Any ideas are welcome.
>
> --
> Best Regards, Jimmy B
> CAD and Database Developer Manager at www.pharmadule-emtunga.com
> Take a look at the trial version of SmartPurger (now for AutoCAD 2004) or
> download some freeware at www.jtbworld.com
> More on AutoCAD 2004;
> www.jtbworld.com/autocad2004.htm
> www.jtbworld.com/autocad2004tips.htm
>
>
>
Message 3 of 5
Anonymous
in reply to: Anonymous

Jeffrey,

You got me on the right track. Now it works. The users are so exited to have
such an easy interface to add printers.

I made a HTML file as follow that I linked to from the DWF.

Is it possible to have the new window hidden or minimized?







--
Best Regards, Jimmy B
CAD and Database Developer Manager at www.pharmadule-emtunga.com
Take a look at the trial version of SmartPurger (now for AutoCAD 2004) or
download some freeware at www.jtbworld.com
More on AutoCAD 2004;
www.jtbworld.com/autocad2004.htm
www.jtbworld.com/autocad2004tips.htm


"Jeffrey Klug (Autodesk)" skrev i
meddelandet news:3AB87CBB4068B4BF81AC0A224F459DCC@in.WebX.maYIadrTaRb...
> I believe the only thing you can do is to wrap your VBS in a CAB file
(which
> runs the VBS), and the CAB file in an HTML file, then link to the HTML.
>
> "Jimmy B" wrote in message
> news:EFE785D9F6E4B7906FBB269E157B3E42@in.WebX.maYIadrTaRb...
> > I've made a DWF of our office with symbols for the printers. The
hyperlink
> > is to a vbs file that will install that printer.
> > The thing I would like to avoid is the dialog box for "file download"
that
> > warns you and force you to select Open to have the script run.
> > Is it somehow possible to do this without the dialog box?
> > I've tried to changed the security setting and trusted sites and so on
but
> > could not get it to work.
> > The DWF and the vbs files will be placed on an intranet.
> > Would it be easier if it is was exe file that would be executed?
> >
> > vbs file below:
> > on error resume next
> > Set WshNetwork = CreateObject("WScript.Network")
> > WshNetwork.AddWindowsPrinterConnection "\\EMTNT12\EMTANX03"
> >
> > Any ideas are welcome.
> >
> > --
> > Best Regards, Jimmy B
> > CAD and Database Developer Manager at www.pharmadule-emtunga.com
> > Take a look at the trial version of SmartPurger (now for AutoCAD 2004)
or
> > download some freeware at www.jtbworld.com
> > More on AutoCAD 2004;
> > www.jtbworld.com/autocad2004.htm
> > www.jtbworld.com/autocad2004tips.htm
> >
> >
> >
>
>
Message 4 of 5
Anonymous
in reply to: Anonymous

There might be some sort of HTML Meta tag that does minimizing or something
like that, but nothing in a viewer URL as far as I know.

"Jimmy B" wrote in message
news:D34D42568A66A67381E26A3F9B7BACFC@in.WebX.maYIadrTaRb...
> Jeffrey,
>
> You got me on the right track. Now it works. The users are so exited to
have
> such an easy interface to add printers.
>
> I made a HTML file as follow that I linked to from the DWF.
>
> Is it possible to have the new window hidden or minimized?
>
>
>
>
>
>
>
> --
> Best Regards, Jimmy B
> CAD and Database Developer Manager at www.pharmadule-emtunga.com
> Take a look at the trial version of SmartPurger (now for AutoCAD 2004) or
> download some freeware at www.jtbworld.com
> More on AutoCAD 2004;
> www.jtbworld.com/autocad2004.htm
> www.jtbworld.com/autocad2004tips.htm
>
>
> "Jeffrey Klug (Autodesk)" skrev i
> meddelandet news:3AB87CBB4068B4BF81AC0A224F459DCC@in.WebX.maYIadrTaRb...
> > I believe the only thing you can do is to wrap your VBS in a CAB file
> (which
> > runs the VBS), and the CAB file in an HTML file, then link to the HTML.
> >
> > "Jimmy B" wrote in message
> > news:EFE785D9F6E4B7906FBB269E157B3E42@in.WebX.maYIadrTaRb...
> > > I've made a DWF of our office with symbols for the printers. The
> hyperlink
> > > is to a vbs file that will install that printer.
> > > The thing I would like to avoid is the dialog box for "file download"
> that
> > > warns you and force you to select Open to have the script run.
> > > Is it somehow possible to do this without the dialog box?
> > > I've tried to changed the security setting and trusted sites and so on
> but
> > > could not get it to work.
> > > The DWF and the vbs files will be placed on an intranet.
> > > Would it be easier if it is was exe file that would be executed?
> > >
> > > vbs file below:
> > > on error resume next
> > > Set WshNetwork = CreateObject("WScript.Network")
> > > WshNetwork.AddWindowsPrinterConnection "\\EMTNT12\EMTANX03"
> > >
> > > Any ideas are welcome.
> > >
> > > --
> > > Best Regards, Jimmy B
> > > CAD and Database Developer Manager at www.pharmadule-emtunga.com
> > > Take a look at the trial version of SmartPurger (now for AutoCAD 2004)
> or
> > > download some freeware at www.jtbworld.com
> > > More on AutoCAD 2004;
> > > www.jtbworld.com/autocad2004.htm
> > > www.jtbworld.com/autocad2004tips.htm
> > >
> > >
> > >
> >
> >
>
>
Message 5 of 5
Anonymous
in reply to: Anonymous

I just have to say, that sounds so cool. Your Users must really like you.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report