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.
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