Pagina 1 di 3 1 2 3 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 23

Discussione: esecuzione file .exe

  1. #1

    esecuzione file .exe

    Ciao
    qualcuno sa se e come posso lanciare un eseguibile da una pagina asp?

    Grazie in anticipo
    A bombolo ma che te lo dico affà beato te che nun capisci un cazzo!!

  2. #2
    Moderatore di CMS L'avatar di kalosjo
    Registrato dal
    Jul 2001
    residenza
    In culo alla luna
    Messaggi
    1,999
    codice:
      set objshell=server.createobject("wscript.shell")
      ret=objshell.run ("eseguibile.exe")
      if ret=0 then
        'eseguito correttamente
      else
        'errore
      end if

    ma la cartella con il file deve avere permessi di esecuzione script ed eseguibili......
    Scusate i puntini di sospensione...... La verità è che non ho argomenti....

  3. #3
    grazie mille
    A bombolo ma che te lo dico affà beato te che nun capisci un cazzo!!

  4. #4
    Utente di HTML.it L'avatar di ubbicom
    Registrato dal
    Mar 2004
    Messaggi
    1,407
    Originariamente inviato da xifilitic
    grazie mille
    ciao e scusate l'intrusione... sto provando a fare la stessa cosa e scrivo così:

    codice:
    <%
    set objshell=server.createobject("wscript.shell")
      ret=objshell.run ("sga.exe")
      if ret=0 then
        'eseguito correttamente
      else
        'errore
      end if
      %>
    ma restituisce:

    error '80070002'
    The system cannot find the file specified.

    /vai.asp, line 3

    sulla cartella ho il controllo completo... dove sbaglio?

  5. #5
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    ret=objshell.run Server.MapPath("sga.exe")
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  6. #6
    Utente di HTML.it L'avatar di ubbicom
    Registrato dal
    Mar 2004
    Messaggi
    1,407
    Originariamente inviato da Corwin
    ret=objshell.run Server.MapPath("sga.exe")
    Grazie, ma:

    codice:
    <%
    set objshell=server.createobject("wscript.shell")
    ret=objshell.run Server.MapPath("sga.exe")
      if ret=0 then
        'eseguito correttamente
      else
        'errore
      end if
      %>
    Microsoft VBScript compilation error '800a0401'

    Expected end of statement

    /vai.asp, line 3

    ret=objshell.run Server.MapPath("sga.exe")
    -----------------^


  7. #7
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    ret=objshell.run(Server.MapPath("sga.exe"))

    chiedo venia.
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  8. #8
    Utente di HTML.it L'avatar di ubbicom
    Registrato dal
    Mar 2004
    Messaggi
    1,407
    Originariamente inviato da Corwin
    ret=objshell.run(Server.MapPath("sga.exe"))

    chiedo venia.
    Grazie, non dà più errore, ma sga.exe non si apre...

  9. #9
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    Ehm, in che senso non si apre ?
    I don't wanna have to shout it out / I don't want my hair to fall out
    I don't wanna be filled with doubt / I don't wanna be a good boy scout
    I don't wanna have to learn to count / I don't wanna have the biggest amount
    I don't wanna grow up

  10. #10
    Utente di HTML.it L'avatar di ubbicom
    Registrato dal
    Mar 2004
    Messaggi
    1,407
    Originariamente inviato da Corwin
    Ehm, in che senso non si apre ?
    scusa, non viene eseguito... pensavo che con questa procedura si potesse visualizzare un eseguibile residente sul server in rete locale direttamente online...

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.