Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Process.Start with Parameters issue

Status
Not open for further replies.

Shift838

IS-IT--Management
Jan 27, 2003
987
US
I have a peice of code that i'm trying to execute with the process.start option in vb .net

It works fine up to a point in the paramenters but when i put in the parameters to pipe the output to a text file via ">" key it does not execute the executable at all. The exact command works find when put in at a command prompt. my code is below.


Code:
If rdbtnqf.Checked = True Then

     cmdparameters = " /full folders /silent >" & txtlogfolder.Text & "0" & i & "_" & logtime & "_QueryFolders.txt"
         For xquery = 1 To i
             MyProcess = Process.Start("DSCHECK.EXE", cmdparameters)

             Do Until MyProcess.HasExited
                Application.DoEvents()
             Loop
         Next

End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top