Hallo NG,

is it possible to start an external programm with vbscript.

For exampal:

Run "C:\MyProgramm.EXE /e"

Thanks, Ahmed

Re: Starting external Programm with VBScript by Jerold

Jerold
Fri Aug 19 08:19:25 CDT 2005

On Fri, 19 Aug 2005 14:49:49 +0200, Ahmed Martens <NG_A.Martens@GMX.de> wrote:

>Hallo NG,
>
>is it possible to start an external programm with vbscript.
>
>For exampal:
>
>Run "C:\MyProgramm.EXE /e"
>
>Thanks, Ahmed


Yes

dim arg
Set WshShell = CreateObject("WScript.Shell")
arg = """C:\Program Files\Support Tools\windiff.exe"" c:\zipnew\kblast.txt D:\ZZZBackup\BKP20050818_1749\kblast.txt"
WshShell.Run arg, 1, True


Re: Starting external Programm with VBScript by Ahmed

Ahmed
Fri Aug 19 11:14:46 CDT 2005

Hallo Jerold,

Am Fri, 19 Aug 2005 09:19:25 -0400 schrieb Jerold Schulman:

> On Fri, 19 Aug 2005 14:49:49 +0200, Ahmed Martens <NG_A.Martens@GMX.de> wrote:
>
>>Hallo NG,
>>
>>is it possible to start an external programm with vbscript.
>>
>>For exampal:
>>
>>Run "C:\MyProgramm.EXE /e"
>>
>>Thanks, Ahmed
>
>
> Yes
>
> dim arg
> Set WshShell = CreateObject("WScript.Shell")
> arg = """C:\Program Files\Support Tools\windiff.exe"" c:\zipnew\kblast.txt D:\ZZZBackup\BKP20050818_1749\kblast.txt"
> WshShell.Run arg, 1, True

thanks for your help.

Ahmed
--
Antworten bitte nur in der Newsgroup.

Re: Starting external Programm with VBScript by Ahmed

Ahmed
Mon Aug 22 08:14:32 CDT 2005

Hallo Jerold,

Am Fri, 19 Aug 2005 09:19:25 -0400 schrieb Jerold Schulman:

> On Fri, 19 Aug 2005 14:49:49 +0200, Ahmed Martens <NG_A.Martens@GMX.de> wrote:
>
>>Hallo NG,
>>
>>is it possible to start an external programm with vbscript.
>>
>>For exampal:
>>
>>Run "C:\MyProgramm.EXE /e"
>>
>>Thanks, Ahmed
>
>
> Yes
>
> dim arg
> Set WshShell = CreateObject("WScript.Shell")
> arg = """C:\Program Files\Support Tools\windiff.exe"" c:\zipnew\kblast.txt D:\ZZZBackup\BKP20050818_1749\kblast.txt"
> WshShell.Run arg, 1, True

sorry, but this code-exampla will not works form me.
What is wrong?

Can you help me again?

Gruß Ahmed
--
Antworten bitte nur in der Newsgroup.

Re: Re: Starting external Programm with VBScript by Jerold

Jerold
Tue Aug 23 07:52:20 CDT 2005

On Mon, 22 Aug 2005 15:14:32 +0200, Ahmed Martens <NG_A.Martens@GMX.de> wrote:

>Hallo Jerold,
>
>Am Fri, 19 Aug 2005 09:19:25 -0400 schrieb Jerold Schulman:
>
>> On Fri, 19 Aug 2005 14:49:49 +0200, Ahmed Martens <NG_A.Martens@GMX.de> wrote:
>>
>>>Hallo NG,
>>>
>>>is it possible to start an external programm with vbscript.
>>>
>>>For exampal:
>>>
>>>Run "C:\MyProgramm.EXE /e"
>>>
>>>Thanks, Ahmed
>>
>>
>> Yes
>>
>> dim arg
>> Set WshShell = CreateObject("WScript.Shell")
>> arg = """C:\Program Files\Support Tools\windiff.exe"" c:\zipnew\kblast.txt D:\ZZZBackup\BKP20050818_1749\kblast.txt"
>> WshShell.Run arg, 1, True
>
>sorry, but this code-exampla will not works form me.
>What is wrong?
>
>Can you help me again?
>
>Gruß Ahmed


Try using your program:

dim arg
Set WshShell = CreateObject("WScript.Shell")
arg = """C:\MyProgramm.EXE /e"""
WshShell.Run arg, 1, True

Re: Starting external Programm with VBScript by Fosco

Fosco
Wed Aug 24 01:23:22 CDT 2005

"Ahmed Martens"
> Run "C:\MyProgramm.EXE /e"
> sorry, but this code-exampla will not works form me.

set oShell = CreateObject("WScript.Shell")
oShell.run"calc"


Runs a program in a new process.

object.Run(strCommand, [intWindowStyle], [bWaitOnReturn])
Arguments
object
WshShell object.
strCommand
String value indicating the command line you want to run. You must include any parameters you want to pass to the
executable file.
intWindowStyle
Optional. Integer value indicating the appearance of the program's window. Note that not all programs make use of this
information.
bWaitOnReturn
Optional. Boolean value indicating whether the script should wait for the program to finish executing before continuing
to the next statement in your script. If set to true, script execution halts until the program finishes, and Run returns
any error code returned by the program. If set to false (the default), the Run method returns immediately after starting
the program, automatically returning 0 (not to be interpreted as an error code).

http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
http://download.microsoft.com/download/winscript56/Install/5.6/W982KMeXP/EN-US/scrdoc56en.exe
--
Fosco



Re: Starting external Programm with VBScript by Ahmed

Ahmed
Thu Aug 25 15:40:17 CDT 2005

Hallo Folks,

now I have no problems and my program will runnig.
My problem was the IE, because the security-option was wrong. Now
everything is correctly and my HTML-Website with the code is already.

Thanks for your help.

Best regards Ahmed
--
Answer only in the Newsgroup.