Datein mit VBS aufrufen?

Hallo Leutz,

mal ne kleine Frage, ich habe BatchDatein, die ich in HTML aufrufen möchte.

Habe ich eine möglichkeit die direkt in HTML aufzurufen, ohne das bestätigt werden muss, das die Datei wirklich aufgerufen wird! (z.B. mit VBS)??

Gruß

Benni
 
schau dir mal den run: Protocol Handler 1.0 & 2.0 an.

Description :

-------------

Ever wanted to launch a program or document from an html page?

Doing this using an "<a href="filename.ext">Open/run</a>" type of link,

will allways cause a download dialog, asking if you want to 'save as ...' or

'open from current location'. Now, if you want to run applications directly from an HTML launcher

(an Active desktop theme for example), this is just bullshit.


This protocol handler will take care of this. After installation, you will be able to specify url's of the following kind :


<a href="run:x:\path\filename.ext">Click here to run!</a>


The specified application or document will open immediately, without asking for confirmation!

Executables will be run, documents will be opened with their associated program.
Auszug aus dem manual.
 
oder

Code:
<script language="vbscript">

sub start()               
        Set wsh = CreateObject("WScript.Shell")
        wsh.Run("C:\System32\NOTEPAD.exe")
end sub

</script>

<input type="button" onclick="start()">
 
Zurück
Oben