Запуск приложения Windows Application из другого приложения

Язык Visual Basic на платформе .NET.

Модераторы: Ramzes, Sebas

Vic
Начинающий
Начинающий
 
Сообщения: 1
Зарегистрирован: 15.01.2008 (Вт) 15:58

Запуск приложения Windows Application из другого приложения

Сообщение Vic » 16.01.2008 (Ср) 9:19

Как запустить приложение Windows Application и передать ему параметр из другого приложения Windows Application или Console Application? Как в вызванном приложениии получить переданный параметр?

Ramzes
Скромный человек
Скромный человек
Аватара пользователя
 
Сообщения: 5004
Зарегистрирован: 12.04.2003 (Сб) 11:59
Откуда: Из гробницы :)

Сообщение Ramzes » 16.01.2008 (Ср) 10:37

запустить через
public static System.Diagnostics.Process Start(string fileName)
Member of System.Diagnostics.Process

Summary:
Starts a process resource by specifying the name of a document or application file and associates the resource with a new System.Diagnostics.Process component.

Parameters:
fileName: The name of a document or application file to run in the process.

Return Values:
A new System.Diagnostics.Process component that is associated with the process resource, or null, if no process resource is started (for example, if an existing process is reused).

Exceptions:
System.ObjectDisposedException: The process object has already been disposed.
System.ArgumentException: The fileName parameter is null.
System.IO.FileNotFoundException: The PATH environment variable has a string containing quotes.
System.ComponentModel.Win32Exception: There was an error in opening the associated file.

Метод перегружен

а параметры получить через

Sub Main(args() as string)

...
End Sub


Вернуться в Visual Basic .NET

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1

    TopList  
cron