Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    vbscript per richiamare un exe

    Ciao a tutti,
    ho creato un programma in vba che interagisce con un programma di grafica, per associarlo ad un nuovo bottone devo fare uno script che mi permetta di far eseguire il file .exe

    devo farlo in vbscript, ma non ne ho la minima idea di come funzioni!!

    vi ringrazio in anticipo!!

    p.s. se avete qualche tutorial o manuale che spieghi vbscript è ben accetto il link

    grazie a tutti e buon lavoro

  2. #2
    Utente di HTML.it
    Registrato dal
    Jul 2001
    Messaggi
    798
    devi usare un componente di Windows Script

    set Wshshell= WScript.createobject("wscript.shell")

    retcode = Wshshell.run (file, 1, TRUE)

    I parametri te li riporto in inglese.

    1 - Activates and displays the window
    2 - Activates and displays the windows as minimized
    3 - Activates and displays the window as maximized
    4 - Activates the windows and displays it in it's most recent size and position
    5 - Activates the window and displays it in it's current size and position
    6 - Minimizes the window and activates the next top-level window
    7 - Displays the windows as a minimized window
    8 - Displays the windows in it's current state
    9 - Activates and displays the window
    10 - Sets the show state based on the state of the program that started the application


    The next parameter, which we set to TRUE is the bWaitOnReturn parameter. The possible values for bWaitOnReturn are:

    TRUE - Causes the VBScript to wait until the command completes before the next line of the script is executed.
    FALSE - The VBScript will continue with the next line in the script without waiting for the command to complete.
    Ans.

  3. #3
    Ti sposto in Scripting, lì troverai sicuramente molte più risposte visto che trattano proprio VBScript

    05.08.2005 - by alka
    Auguri all'angelo custode dei moderatori.

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.