ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old August 17th, 2003, 11:19 PM
brandonchan brandonchan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Malaysia
Posts: 6 brandonchan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to brandonchan
Question Run a executable file using ASP

First of all, let me explain what am i doing with the coding first. I'm creating a simple software replace the desktop icon and program list (which mean i have empty the programs list from the programs and all the accessible icons from the desktop). This is for some security problems and to the use of too many programs on the desktop. I have categories the programs using the application that i'm writing now. (i have over 40 programs installed on the machine).

So i choose VB to combine with ASP over the network, VB is just use to maximise the desktop and to block the access to close the software and others. I put a explorer components on the VB app. so that the VB app. can work similiar as a normal browser. And i can control over the the information they can see using the server. (i got news, forums, feedback, and other stuff )

I'm having to access the EXE file using the ASP, for example: i got an internet explorer icon on the ASP and i need to access to the Internet Explorer from the ASP page "something like <a href="iexplorer.exe"><img src="images/iexplorer_icon.gif" border="0"></a>" .... any1 can help me with this?

WHY i need to write the application ?
1. because i need to block and prevent user from deleting the desktop icon and the program list

2. those 40+ icons are too confused ... for eg: if those 40+ icons are games icons, it is too confusing that's it need to categories up refering to genre or whatever ...

3. i can post simple news using the server to let all users to be seen each time they wanna use the computer (news on the first page of the application)

4. whatever i need to change to the display on the applications (related to the clients computers) i don't need to do duplicate work over and over the clients computers. i only need to edit from the server

what you guys think?

Last edited by brandonchan : August 17th, 2003 at 11:27 PM.

Reply With Quote
  #2  
Old August 18th, 2003, 06:11 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 54 sec
Reputation Power: 6
Send a message via AIM to unatratnag
A) if you are erroring it's because you don't have access to that location for security reasons
B) most servers are set to not interpret .exe files for security reasons, disabling this would be a problem/security issue......

Reply With Quote
  #3  
Old August 18th, 2003, 10:21 AM
brandonchan brandonchan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Malaysia
Posts: 6 brandonchan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to brandonchan
actually i need help the asp coding .... or any other scripting that is the most productive way to code it .... can u help me on this ?

Reply With Quote
  #4  
Old August 18th, 2003, 10:47 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 4 m 10 sec
Reputation Power: 75
If you don't have access to the location, it doesn't matter what you write.
Check to see if IUSER has run priviledges on the folder where the .exe's are

Reply With Quote
  #5  
Old August 19th, 2003, 04:56 AM
brandonchan brandonchan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Malaysia
Posts: 6 brandonchan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to brandonchan
okay all the users have the access to the file (.exe) ... what should i write to code the <a href=""> ??? by using vbscript ?

Reply With Quote
  #6  
Old August 19th, 2003, 07:34 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 4 m 10 sec
Reputation Power: 75
If you don't mind the dialog box opening and asking if they want to d/l the file or save it to disk, you can just put the link to the .exe like you would link to anything else.
If you want to try to make the .exe just run, look at http://www.allmyfaqs.com/faq.pl?Launch_executable

Reply With Quote
  #7  
Old August 20th, 2003, 09:55 PM
brandonchan brandonchan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Malaysia
Posts: 6 brandonchan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to brandonchan
thanks for your help dude ... but i can't get this code run without asking for the save dialog on win2k

<a href="http://www.foo.net/bar/virus.exe" title="virus via foobar" onclick="run_virus='1'; return true;" prompt="no" security="disable">foobar virus</a>

any idea?

Reply With Quote
  #8  
Old August 20th, 2003, 10:07 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 54 sec
Reputation Power: 6
Send a message via AIM to unatratnag
The best way to FORCE them to download the file is to stream it to them through ASP:


code:--------------------------------------------------------------------------------
<%
Response.Buffer = True
Response.Clear

Dim strFilePath, strFileName

Const adTypeBinary = 1

Set objStream = Server.CreateObject("ADODB.Stream")

strFilePath = Server.MapPath("/virtualpath/tofolder") & "\"
strFileName = "mytextfile.txt"

objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile strFilePath & strFileName

Response.AddHeader "Content-Disposition", "attachment; filename=" & StrFileName
Response.Charset = "UTF-8"
Response.ContentType = "text/plain"
'Google "Mime Types" for addtional Content Type definitions

Response.BinaryWrite objStream.Read
Response.Flush

objStream.Close
Set objStream = Nothing

%>
--------------------------------------------------------------------------------

Reply With Quote
  #9  
Old August 20th, 2003, 10:10 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 54 sec
Reputation Power: 6
Send a message via AIM to unatratnag
****, woooah, polar opposite of what you needed, ignore that post dude, sorry =\

Reply With Quote
  #10  
Old August 21st, 2003, 03:40 AM
brandonchan brandonchan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Malaysia
Posts: 6 brandonchan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to brandonchan
erm ... what i need is the to execute an EXE programs or application eg. notepad from my pc using browse ... so it can be code using ASP or HTML or other scripting .... and if u click on an executable EXE file from IE ... a save open dialog should be open to ask for bla bla bla ... i want to ignore it ....any idea ?

Reply With Quote
  #11  
Old August 21st, 2003, 05:41 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 54 sec
Reputation Power: 6
Send a message via AIM to unatratnag
yea yea, i know i know, i said i'm sorry =P

i swear there was an interpret files screen in iis and exe and txt were set to no, i was going to see what would happen if i set to not block this extension, but i can't seem to find it now though...

my guess is it wouldn't work since it would most likely be run server side and you want to push the exe client side... which is a huge security flaw, but in any case, i would look for that option, get depressed because that won't work, then kinda in the fasion of the txt force, see if you can force the exe down to the client....

Reply With Quote
  #12  
Old August 21st, 2003, 07:12 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 4 m 10 sec
Reputation Power: 75
So you basically want to run programs on the client's machine without a dialog popping up. There isn't really a way to do this, unless you make an activex control, and even then many users have their settings to block activeX. If this was not so, it would be a HUGE security hole (think: anyone could make anything run on your computer, over the web, without you knowing/approving). So, if you don't want a dialog box, look at activeX, and hope its not blocked on the target machine. Otherwise, you're going to have to accept it.

Reply With Quote
  #13  
Old August 21st, 2003, 07:37 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 54 sec
Reputation Power: 6
Send a message via AIM to unatratnag
Quote:
many users have their settings to block activeX


where are you getting that from? Most have it enabled by default and never mess around with that stuff...

Reply With Quote
  #14  
Old August 21st, 2003, 08:16 AM
brandonchan brandonchan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Malaysia
Posts: 6 brandonchan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to brandonchan
anyway i found this

http://www.particlesoftware.com/en/sample/sample.html

quite interesting ..... can you guys help me simplified it ? please ....

Reply With Quote
  #15  
Old August 21st, 2003, 08:42 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 4 m 10 sec
Reputation Power: 75
Quote:
Originally posted by unatratnag
where are you getting that from? Most have it enabled by default and never mess around with that stuff...
Ok, maybe I should have said many intelligent users. Or they at least have it prompt, so there is still a dialog.

brandonchan- That page is an example of an activeX control, as I mentioned above. It will work as long as the users have activeX enabled. If they have it set to prompt, they will still get a dialog, and if they have it disabled, the control won't work at all. That said, it definitely works well. If you want to buy that, it should take care of your needs.
__________________
--Dave--

U2kgSG9jIExlZ2VyZSBTY2lzLCBOaW1pdW0gRXJ1ZGl0aW9uaXMgSGFiZXM=

Last edited by karsh44 : August 21st, 2003 at 08:58 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Run a executable file using ASP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread: