在.bat文件中包含代码PHP filename.php打开bat文件后出现错误消息找不到输入文件:filename.php。谁能给出建议请无法打开输入文件: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());
}
}
}
向我们展示你的BAT文件 –
file1.bat只包含PHP filename.php – Kingsters
到filename.php的路径是不完整/错了吗? – jac