Question:You are required to launch the App.exe process, and specify sample.txt as the input file.
App.exe will then use the contents of sample.txt to establish the environment's current settings.
You need to ensure that the code you use meets these requirements.
What should you do? - (VB.Net) 

A Use the following code:
Dim myProcess As New Process()
myProcess.StartInfo = New ProcessStartInfo("App.exe sample.txt")
myProcess.Start() 

B Use the following code:
Dim myProcess As New Process()
myProcess.StartInfo = New ProcessStartInfo("App.exe")
myProcess.ProcessStartArgs("sample.txt")
myProcess.Start() 

C Use the following code:
Dim myProcess As New Process()
myProcess.StartInfo = New ProcessStartInfo("App.exe")
myProcess.Start("sample.txt") 

D Use the following code:
Dim myProcess As New Process()
myProcess.StartInfo = New ProcessStartInfo("App.exe")
myProcess.StartInfo.FileName = "sample.txt"
myProcess.Start() 

+ Answer
+ Report
Total Preview: 902

Copyright © 2024. Powered by Intellect Software Ltd