Process P = new Process();
P.StartInfo.FileName = Tools.ConfigEntry<string>.GetConfigEntry("PathUpdater", @"F:\ALLGEMEIN\EDV\asUpdater\asWorksUpdater", "Pfad zur UpdaterExe");
P.StartInfo.Arguments = Argument;
P.Start();
public MainWindow(string Argument)
{
try
{
InitializeComponent();
if (Argument != null)
{
arg = Argument.Split(',');
ProgName = arg[2].Replace(".exe", "");
}
else
{
MessageBox.Show("Keine Argumente.");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
|
Wie rufst Du denn den MainWindow-Konstruktor auf? Das macht .NET doch nicht automatisch, oder?
– Matthias Hlawatsch 09.07.2013
|
string InstallPath = "c:\Programme\etc .....";
string UpdatePath = "F:\Update\.....";
string AppName = "Updater.exe";
string Argument = string.Format("{0},{1},{2]",InstallPath,UpdatePath,AppName");
Process P = new Process();
P.StartInfo.FileName = "F:\Programme\updater.exe"
P.StartInfo.Arguments = Argument;
P.Start();
|
string Argument = string.Format("{0},{1},{2 --> ] <--",InstallPath,UpdatePath,AppName");
|
|
Dim startInfo As New System.Diagnostics.ProcessStartInfo
startInfo.FileName = "IExplore.exe"
startInfo.Arguments = "http://www.google.de/"
Process.Start(startInfo)
|
|