【发布时间】:2013-01-25 04:16:44
【问题描述】:
在 .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());
}
}
}
【问题讨论】:
-
file1.bat 只包含 PHP filename.php
-
filename.php 的路径不完整/错误?