ganders Posted November 26, 2004 Posted November 26, 2004 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" Quote
*Gurus* Derek Stone Posted November 26, 2004 *Gurus* Posted November 26, 2004 http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemDiagnosticsProcessClassStartTopic4.asp Quote Posting Guidelines
ganders Posted November 29, 2004 Author Posted November 29, 2004 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 Quote
donnacha Posted November 29, 2004 Posted November 29, 2004 I believe everything seperated by a space must be a seperate argument. (I think) Try it out. Quote Hamlet
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.