-
VB Script
Hallo Holger,
laut dem IBM Dokument muss es aber mit dem Parameter gehen:
Calling another Program from within VBScript Macro: PCOMM now supports starting an application file from within a
VBScript. To accomplish this a new automation object has been introduced. autSystem is the new object and Shell
is the new method.
The prototype is as follows:
function autSystem.Shell "ExeName",["Parameters"],[WindowStyle] as long
Parameters :
ExeName - String; the path and filename to the executable file.
Parameters - String, optional; any parameters you wish to pass on to
the application
WindowStyle - Integer, optional; the window style that you want the
application started as.
The valid values are:
AUTSYS_SHOW = 1 - show normal with focus
AUTSYS_SHOWMINIMIZED = 2 - show minimized with focus
AUTSYS_MAXIMIZE = 3 - show maximized
AUTSYS_SHOWNA = 4 - show normal without focus
AUTSYS_MINIMIZE = 5 - show minimized without focus
The default is AUTSYS_SHOW.
Return:
long - If the value is less than 32 it indicates an error has occured.
example: to run notepad from within a VBScript
autSystem.Shell "Notepad.exe", "c:\test.txt" , 1
This will start notepad with the file c:\test.txt loaded in a Normal window with focus.
Similar Threads
-
By Cyrex in forum NEWSboard Windows
Antworten: 19
Letzter Beitrag: 22-11-06, 10:33
-
By cbe in forum IBM i Hauptforum
Antworten: 5
Letzter Beitrag: 17-11-06, 23:11
-
By ath in forum NEWSboard Drucker
Antworten: 4
Letzter Beitrag: 05-09-06, 13:58
-
By ratinger in forum IBM i Hauptforum
Antworten: 1
Letzter Beitrag: 30-06-06, 11:39
-
By bo1 in forum IBM i Hauptforum
Antworten: 3
Letzter Beitrag: 23-06-06, 16:00
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- You may not post attachments
- You may not edit your posts
-
Foren-Regeln
|
Erweiterte Foren Suche
Google Foren Suche
Forum & Artikel Update eMail
AS/400 / IBM i
Server Expert Gruppen
Unternehmens IT
|
Kategorien online Artikel
- Big Data, Analytics, BI, MIS
- Cloud, Social Media, Devices
- DMS, Archivierung, Druck
- ERP + Add-ons, Business Software
- Hochverfügbarkeit
- Human Resources, Personal
- IBM Announcements
- IT-Karikaturen
- Leitartikel
- Load`n`go
- Messen, Veranstaltungen
- NEWSolutions Dossiers
- Programmierung
- Security
- Software Development + Change Mgmt.
- Solutions & Provider
- Speicher – Storage
- Strategische Berichte
- Systemmanagement
- Tools, Hot-Tips
Auf dem Laufenden bleiben
|
Bookmarks