BYTEINSIGHT
GAPVelocity AI Studio helps you move from outdated tech stacks to the latest desktop, web, and cloud platforms—smarter, faster, and with less risk.
Choose a platform to see migration options:
Our comprehensive approach to application modernization, from assessment to production deployment.
Transformation Services
Not Sure Where to Start?
This Warning appears when you are migrating a Shell call, and it means that the way that parameters are passed to a process in .Net is different than the VB6's.
If you need to pass parameters to a command being executed by a Shell, split the command and the arguments in this way:
ProcessStartInfo startInfo = newProcessStartInfo("command");
startInfo.Arguments = parameters;
PublicSub ExcecuteCmd(ByVal parameters AsString)
Shell("command " & parameters, vbMaximizedFocus)
EndSub
PublicSub ExcecuteCmd(ByVal parameters AsString)
'UPGRADE_WARNING: (7005) parameters (if any) must be set using the Arguments property of ProcessStartInfo
Dim startInfo As ProcessStartInfo = New ProcessStartInfo("command " & parameters)
startInfo.WindowStyle = ProcessWindowStyle.Maximized
Process.Start(startInfo)
EndSub
publicvoid ExcecuteCmd( string parameters)
{
//UPGRADE_WARNING: (7005) parameters (if any) must be set using the Arguments property of ProcessStartInfo
ProcessStartInfo startInfo = newProcessStartInfo("command " + parameters);
startInfo.WindowStyle = ProcessWindowStyle.Maximized;
Process.Start(startInfo);
}