473,327 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Local EXE and web server communications

My last question wound up opening up a larger can of worms then I had
thought. This may be off-topic as it involves more then just C++. Any help
would be appreciated.

Our application is as follows:

99% of the application is an intranet web site
1% is a group of EXEs on the user's machine to do the things that the
intranet cannot/does not allow. For example, writing files, creating
directories etc etc.

The EXEs would be called directly when the intranet needed something
specific done, for example:

c:\intranet\commands\copyFile.exe http:\\www.intranet.com\file.pdf

copyFile.exe is a simple (mythical) program that downloads a file off the
intranet and stores it locally on the user's machine.

This command would then (presumably) be called by the intranet using html.
(I forget if they strip html)
[a href="c:\intranet\commands\copyFile.exe
http:\\www.intranet.com\file.pdf"]download this file[/a]

This did not work. The latest security changes for IE prevent you from
simply creating a direct link to the file.

I experimented with creating a HTA file, but the exe reference variable
(http:\\www.intranet.com\file.pdf) did not appear to go through

So I experimented with using a vbscript command

sub onclick_method()
Set WshShell = CreateObject("WScript.Shell")
cmd = "c:\intranet\commands\copyFile.exe http:\\www.intranet.com\file.pdf"
Set oExec = WshShell.Exec(cmd)
end sub

This, simply, threw an error. I know the term "threw an error" is useless,
to make a long story short, the application I am working on is quite
involved, and it runs just fine by itself, but when it is executed via
(WScript.Shell) there must be a permission style problem because somewhere,
somehow the (normally working exe) simply bombs on execution (blank error
message, and it crashes). So I've put off trying to force it to work with
WshShell simply because I don't know how much work that will be.

The other problem with an HTA is it prompts the user twice: 1st time to make
sure they want to load the HTA, and one time to make sure they want to load
the EXE the HTA is trying to call.

Does anyone have any suggestions on a better method of communicating with a
local C++ EXE and the web server? The web server needs to initiate the call
to the EXE (it can't be the other way around) because the web server is the
one requesting commands (create this directory, download this file, upload
this information).

Any help is appreciated.

Nov 17 '05 #1
0 925

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alexander DEJANOVSKI | last post by:
JyRetic 1.0RC3 was just released. (http://retic.sourceforge.net) Changes are (I might have forgotten some bug fixes): - Bug fix : Scheduled events didn't work if no parameter file was required...
4
by: Roberto | last post by:
Hi, I have Windows Server 2003 + IIS 6.0 with all the security patches released by Microsoft installed until Today. I have an ASP page that calls a method of an object installed under COM +...
3
by: anon | last post by:
Hello, I already have setup SSL on my production server via purchasing a certificate and that seems to work fine as I can type in https:// and it works fine. However, I want AND need to be...
9
by: User | last post by:
Hi, I tried to find the information over the internet but didn't find any answers. I'm looking for a server side code example of winsock accepting many clients. I know that in VB.NET it is...
0
by: Dana Morris | last post by:
Call for Participation OMG's First Annual Software-Based Communications (SBC) Workshop: From Mobile to Agile Communications http://www.omg.org/news/meetings/SBC2004/call.htm September 13-16,...
7
by: rdh | last post by:
Hi all, I am in process of developing a Server in C++ supporting multiple protocols. The server will be exposing various functionalities, and the clients can communicate over any of the...
1
by: Catherine Jo Morgan | last post by:
This is for a recreational tree climbing database. When a climb is arranged, it often begins with one or more inquiries by phone or email. Sometimes it takes several communications to answer...
3
by: Angus | last post by:
Hello I have a member variable: std::map<int, CAgentsm_AgentsList; CAgents is just a really small class with some member variables. Just really a container for agent data. Agents log in to...
5
by: naamala | last post by:
Hi, How can i get unused/available port in the local system using C# ? Or Is there any way to find out whether the particular port number is being used by any other application using C#? ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.