|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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...... |
|
#3
|
|||
|
|||
|
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 ?
|
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
okay all the users have the access to the file (.exe) ... what should i write to code the <a href=""> ??? by using vbscript ?
|
|
#6
|
||||
|
||||
|
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 |
|
#7
|
|||
|
|||
|
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? |
|
#8
|
|||
|
|||
|
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 %> -------------------------------------------------------------------------------- |
|
#9
|
|||
|
|||
|
****, woooah, polar opposite of what you needed, ignore that post dude, sorry =\
|
|
#10
|
|||
|
|||
|
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 ?
|
|
#11
|
|||
|
|||
|
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.... |
|
#12
|
||||
|
||||
|
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.
|
|
#13
|
|||
|
|||
|
Quote:
where are you getting that from? Most have it enabled by default and never mess around with that stuff... |
|
#14
|
|||
|
|||
|
anyway i found this
http://www.particlesoftware.com/en/sample/sample.html quite interesting ..... can you guys help me simplified it ? please .... |
|
#15
|
||||
|
||||
|
Quote:
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Run a executable file using ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |