0
使用下面的代码我创建了一个快捷方式。当我运行HP fortify工具时,我得到了突出显示的代码的路径操作问题。我是新手。可以请任何人告诉我如何纠正它。我的意思是操纵路径正在发生。在C#中创建快捷方式时的路径操作
string fileName = new data()。getdata(object_id,Cid,id_pluf).Tables [0] .Rows [0] [“Name”] +“url”;
**var fs = new System.IO.FileStream(start + fileName, System.IO.FileMode.Create);**
fs.Write(bytes, 0, bytes.Length);
fs.Flush();
fs.Close();
private static void DeleteShortcut(string start, string fileName)
{
**if (System.IO.File.Exists(start+ fileName))**
{
**System.IO.File.Delete(start+ fileName);**
}
}