Так попробуй:
string directory = string.Format(@"{0}\File\Temp\{1}\{2}", project.Directory, project.Variables["Random"].Value, project.Variables["Id_torrent"].Value);
string filePath = string.Format(@"{0}\File\Temp\{1}\[torrent.net].t{2}.torrent", project.Directory...