Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hi

 

i like to start the the following commandline using processstartinfo.arguments and process.start.

well, nothing happens. entering this line directly inside a command-shell works fine. so, what am i doing wrong?

 

best regards

 

georg

 

command: "C:\Temp\lmutil.exe lmstat -a -c A.lic > C:\Temp\A.txt"

Posted

hi derek

 

ty for your reply

 

i've tried the following code (without success)

 

Dim pProcess As New Process

Dim pProcessInfo As New ProcessStartInfo

pProcessInfo.FileName = "C:\Temp\lmutil.exe"

pProcessInfo.Arguments = " lmstat -a -c ARCINFO9.lic > C:\Temp\A.txt"

pProcessInfo.UseShellExecute = True

pProcess.StartInfo = pProcessInfo

pProcess.Start()

 

executing this code opens a shell only for verry short time, but nothing is executed. could it be a problem, that i'm passing multiple arguments in just one string?

 

best regards

 

georg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...