在 .bat 文件中包含代码 PHP filename.php 我在打开 bat 文件后收到错误消息 Could not find input file:filename.php 。任何人都可以提供建议吗
private void button5_Click_1(object sender, EventArgs e)
{
try
{
string bat = "D:\\folder1\\file1.bat";
if (File.Exists(bat))
{
if (radioButton1.Enabled == true)
{
MessageBox.Show(bat.ToString());
System.Diagnostics.Process.Start(bat);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
}