/    Sign up×
Community /Pin to ProfileBookmark

embed .exe file in HTML page

Is it possible to embed an .exe file into a HTML page that runs automatically when the page is loaded?

Or how about for the .exe file to run in a new window, say using javascript?

to post a comment
HTML

8 Comments(s)

Copy linkTweet thisAlerts:
@AdamGundryJun 11.2003 — No way - the risk of viruses would be incredible. The best you are likely to get is providing a link to the EXE file, so users can download and then run it. I suppose it's possible there are hacks out there, but I hope not!

Adam
Copy linkTweet thisAlerts:
@moondanceauthorJun 11.2003 — ok that seems reasonable enough.

What i want is a simple .exe that opens up word on the clients computer, then saves the content of the document in a hidden form field. Do you know if this is possible?


Also, can word be invoked using, say javascript (remember i need to copy the contents of the document, including images).

Thanks.
Copy linkTweet thisAlerts:
@brendandonhueJun 11.2003 — No javascript does not have access to the hard drive or executable files.
Copy linkTweet thisAlerts:
@Khalid_AliJun 12.2003 — if you just embed the msword file in a link

<a href="xxxxx.doc">Word File</a>

Typically when a user clicks on this link and the system has MS Word installed it should automatically open the file with MS Word.....

There are ways of using Java Applets and MS ActiveXControls to run .exe files

,however, the question will still remain,do you really need to go through all that trouble? while you can open word with the code line I posted above.
Copy linkTweet thisAlerts:
@moondanceauthorJun 12.2003 — I've written a simple activeX that will open word when clicked on. What i need this for is so that customers who write reports in Word can include images/ screenshots, and then the word content can be copied and saved as a binary file, to be sent to the server. This has to be done because at the moment each word file sent to the company is a few megs each in size due to the graphics. This will save server space as the content will be saved as binary (BLOB or image on SQL server) instead of a .doc.

The reason i asked about the .exe file is because its easier to do if you create an exe (i am using visual basic) as it lets you add an OLE container to .exe files, but not to ActiveX files: the word document pops up in the OLE container, and the content is easily copied, ready to be converted.

But it needs to be as an activeX plugin to run from a webpage, so the conversion of the content can be passed to a variable in the activeX code, to be passed to a HTML form.

I've got as far as opening word and copying the content, but i have no idea how to convert the content to binary or hex , or how to pass this to a form field. Is it possbile to pass an ActiveX variable to a standard HTML form???


whew. sorry about the long explanation, but its better understood this way than in dribs and drabs.

cheers
Copy linkTweet thisAlerts:
@AdamGundryJun 12.2003 — I haven't really used VB/ActiveX, but you might be able to manually open a HTTP connection to the server and upload the file as a stream. Alternatively, you could save the file to the hard disk (as you are using ActiveX) and then upload using the HTML file upload control?

I don't believe you have to convert anything, because you should just be able to store the doc file in a BLOB field (I think). After all, a doc file is just a specific format for binary data, like a text file or whatever else.

Adam
Copy linkTweet thisAlerts:
@Khalid_AliJun 12.2003 — [i]Originally posted by moondance [/i]

[B]

........ Is it possbile to pass an ActiveX variable to a standard HTML form???

cheers [/B]
[/QUOTE]


The way MS Products work here is a suggestion,I am prety sure it will work..?

Suppose below is your activex control variable that has the all the contents of the doc file

Dim whatever as String(pardone me if syntax is wrong)

you can try to do this

document.formName.textFieldName.value=whatever

I am prety sure..IE will convert it to required format..
Copy linkTweet thisAlerts:
@crackrucklesMar 06.2008 — i need a way of embedding a n64 emulator into a web page and have it set up so you can open roms from it to. its for my school is the anyway of doing it??
×

Success!

Help @moondance spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...