I need to download a file from an Intranet web site and feed it into a
program on the PC where the browser is running. Browser is Internet
Explorer. Both Javascript and VBscript are options.
Which would be my best options? Examples would be welcomed!
rj 6 4851
On Oct 28, 5:28*pm, raymond_b_jime. ..@yahoo.com wrote:
I need to download a file from an Intranet web site and feed it into a
program on the PC where the browser is running. Browser is Internet
That's one of the things that browsers do.
Explorer. Both Javascript and VBscript are options.
IE can do it as it is a browser. Script is not required.
Which would be my best options? Examples would be welcomed!
rj
Push out a blob of registry entries to associate the file type with
the program, map the appropriate MIME type to the file type, adjust
security settings, etc. These are tasks for your Intranet
administrator.
On Oct 28, 5:28*pm, raymond_b_jime. ..@yahoo.com wrote:
I need to download a file from an Intranet web site and feed it into a
program on the PC where the browser is running. Browser is Internet
Explorer. Both Javascript and VBscript are options.
Which would be my best options? Examples would be welcomed!
rj
Maybe this will help (doesn't need browser): http://groups.google.com/group/micro...20d6c8e247f1fa
Once the file is available on the local machine, use the Wscript.Shell
in your script to start the application referencing the local file ...
sDownLoadedFile = "d:\somewhere\f ilename
with CreateObject("W script.Shell")
.Run "d:\location\yo ur_application. exe " & sDownLoadedFile , 0, True
end
Tom Lavedas
=========== http://members.cox.net/tglbatch/wsh/
Thanks Tom. I had seen the code, I tested it again, but it doesn't
work. It won't execute
With CreateObject("A DODB.Stream")
Seems like the example is server side code, but I need it to run on
the client. Can you confirm the code sample can be executed in
VBScript on the client browser?
rj
On Oct 29, 2:12*pm, Tom Lavedas <tglba...@cox.n etwrote:
On Oct 28, 5:28*pm, raymond_b_jime. ..@yahoo.com wrote:
I need to download a file from an Intranet web site and feed it into a
program on the PC where the browser is running. Browser is Internet
Explorer. Both Javascript and VBscript are options.
Which would be my best options? Examples would be welcomed!
rj
Maybe this will help (doesn't need browser):
http://groups.google.com/group/micro...ng.vbscript/ms...
Once the file is available on the local machine, use the Wscript.Shell
in your script to start the application referencing the local file ...
sDownLoadedFile = "d:\somewhere\f ilename
with CreateObject("W script.Shell")
* .Run "d:\location\yo ur_application. exe " & sDownLoadedFile , 0, True
end
Tom Lavedas
===========http ://members.cox.net/tglbatch/wsh/
Thanks David,
The idea is that the user only clicks once and generates the whole
process. I cannot associate the file type because they are doc files,
and they have to be openable by Word in Windows. The idea is to pass
them through another application. My main problem is downloading the
file to a special directory (temp directory) without the user having
to select it.
rj
On Oct 28, 9:38*pm, David Mark <dmark.cins...@ gmail.comwrote:
On Oct 28, 5:28*pm, raymond_b_jime. ..@yahoo.com wrote:
I need to download a file from an Intranet web site and feed it into a
program on the PC where the browser is running. Browser is Internet
That's one of the things that browsers do.
Explorer. Both Javascript and VBscript are options.
IE can do it as it is a browser. *Script is not required.
Which would be my best options? Examples would be welcomed!
rj
Push out a blob of registry entries to associate the file type with
the program, map the appropriate MIME type to the file type, adjust
security settings, etc. *These are tasks for your Intranet
administrator.
On Oct 29, 11:42*am, raymond_b_jime. ..@yahoo.com wrote:
Thanks Tom. I had seen the code, I tested it again, but it doesn't
work. It won't execute
* * With CreateObject("A DODB.Stream")
Seems like the example is server side code, but I need it to run on
the client. Can you confirm the code sample can be executed in
VBScript on the client browser?
rj
On Oct 29, 2:12*pm, Tom Lavedas <tglba...@cox.n etwrote:
On Oct 28, 5:28*pm, raymond_b_jime. ..@yahoo.com wrote:
I need to download a file from an Intranet web site and feed it into a
program on the PC where the browser is running. Browser is Internet
Explorer. Both Javascript and VBscript are options.
Which would be my best options? Examples would be welcomed!
rj
Maybe this will help (doesn't need browser):
http://groups.google.com/group/micro...ng.vbscript/ms...
Once the file is available on the local machine, use the Wscript.Shell
in your script to start the application referencing the local file ...
sDownLoadedFile = "d:\somewhere\f ilename
with CreateObject("W script.Shell")
* .Run "d:\location\yo ur_application. exe " & sDownLoadedFile , 0, True
end
Tom Lavedas
=========== http://members.cox.net/tglbatch/wsh/
I didn't understand you original post to mean it was for client side
script. None of the ActiveX controls invoked in my examples will work
in client side scripting without significant security intervention/
risk. In fact, executing an application on a user's machine is
strictly verboten in an Inter/Intranet environment.
The only way I know to come close is to get the client to download an
HTA (Hypertext Application) and then use it to access the file and run
the application. In its simplest incarnation, an HTA is an HTML with
its extension changed to .hta. When run by the user on his local
machine, it can access all of the IE controls, but the security
environment is far less stringent. It can run ActiveX controls, such
as the MSXML, ADODB and Wscript Shell.
Tom Lavedas
=========== http://members.cox.net/tglbatch/wsh/
On Oct 29, 11:44*am, raymond_b_jime. ..@yahoo.com wrote:
Thanks David,
The idea is that the user only clicks once and generates the whole
process. I cannot associate the file type because they are doc files,
and they have to be openable by Word in Windows. The idea is to pass
them through another application. My main problem is downloading the
file to a special directory (temp directory) without the user having
to select it.
The browser does that for you. Give the ones on the server a
different extension. Your client side program can rename them to
DOC's when it is done processing them. Then the users can open them
in Word. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jan Bols |
last post by:
I'm using PHP 4.3 and APACHE2.0. I have a website that requires people
to log in before they can download files from my website. A person is
logged in if there is a session-variable $logged_in set to TRUE.
How can I prevent people from downloading a file (f.e. myfile.doc)
without being logged in when they know the direct link to the file
(http://www.mysite.com/somedir/myfile.doc)?
Putting the file in an obscure place by working with...
|
by: Pavils Jurjans |
last post by:
Hello,
My ASP.NET hoster has made a separate folder in my hosting space and
configured it as separate application in IIS. Further, I created "bin"
folder in this directory, and put in my aspx pages that all use code-behind.
All works fine, but I was dismayed finding out that is is possible to write
direct URL to an assembly in the bin folder, and IIS would allow to download
pure code. That's somewhat very worg, isn't it?
What should I...
|
by: Luis Esteban Valencia |
last post by:
I am on an intranet I havent been able to download the visual web developer
2005 with that installer. Is there a direct link to download it?
--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 2.
MIEMBRO ACTIVO DE ALIANZADEV
|
by: Roy |
last post by:
Hi,
I have a problem that I have been working with for a while.
I need to be able from server side (asp.net) to detect that the file i'm
streaming down to the client is saved completely/succsessfully on the
client's computer before updating some metadata on the server (file
downloaded date for instance)
However,
All examples i have tried, and all examples I have found that other people
says works - doesn't work for me :-(
|
by: Bob Avallone |
last post by:
MetaPro Systems Inc. Visual Studio Dot Net Tips & Tricks #3 – Direct
Access to
Your Outlook Address Book.
Project Type: VS.NET Windows Application
Code Behind: Visual Basic
I have a project where I needed to access my Outlook Address book
directly. This is possible but very tricky. I got it to work and I
would like to share it with you. Thanks go to Jim Lennox of Scientific
| |
by: chris |
last post by:
Hi!
Is there any Way or have somebody a Function to do something like this
copy skurs from 'http://ichart.finance.yahoo.com/table.csv?s=TKAG.DE&d=10&e=15&f=2004&g=d&a=3&b=5&c=1991&ignore=.csv';
Would be great if you could help me!
THX
Christian Meier
|
by: matt |
last post by:
I have used some free code for listing files for download, but I want to
send an email to the administrator when the file has been downloaded. I
have got some code in here that does it, but it will not print in the
username or email amddress of the person doing the download - which I am
collecting from a form on the previous page. I can get the name and
email address to print out normally, just not into the email sending
body. I have...
|
by: KevinADC |
last post by:
Note: You may skip to the end of the article if all you want is the perl code.
Introduction
Many websites have a form or a link you can use to download a file. You click a form button or click on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script.
What You Need
Any recent...
|
by: yogarajan |
last post by:
hi friends
i have one problem. i m using forms authentication for my pages which consist of downloadable links (doc files, pdf files etc.,). the thing is, if i restrict access to the page, it works fine ( redirects anonymous users to login page). however, if someone types the url of the documents directly (ex:- mywebserver/myapp/downloads/documentname, it directly downloads without authenticating.
any way to restrict direct downloading...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |