I\'m running a SQL Server Agent Job which has a script task with Microsoft Visual C# 2008 which is below:
public void Main() { string filepath; f
Try converting your bool to an int.
Dts.Variables["User::FileExistsFlg"].Value = Convert.ToInt32(File.Exists(filepath));