The file test has no extension and I need help to either move or rename this file to something with a extension
if(File.Exists(@"C:\\Users" + Environment.UserName + "\\Desktop\\test"))
{ /\
this file has no file extension
}
Try like this:
Also check Directory.GetFiles