Hi,
i am try to check .exe file change extension .jpg and uplaod then upload this file but this file is how to check this is executable file or not in if change the extension in c#
please help me
thanks in advance
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
sudipta sanyalRank #1,945 · 753 reputationPosted Feb 15, 2017, 7:29 PM EST
sudipta sanyalRank #1,945 · 753 reputationPosted Feb 15, 2017, 7:59 PM EST
Amit KumarRank #459 · 5.4K reputationPosted Feb 15, 2017, 7:40 PM EST
Rafnas T PRank #280 · 8.8K reputationPosted Feb 15, 2017, 8:07 PM EST
string path=FullFilepath;string fileExtension = System.IO.Path.GetExtension("FullFilepath");fileExtension==".exe")path= System.IO.Path.ChangeExtension(fileLocation, ".jpeg");sudipta sanyalRank #1,945 · 753 reputationPosted Feb 15, 2017, 9:25 PM EST
Maharudra GadekarRank #5,163 · 309 reputationPosted Feb 22, 2017, 12:58 AM EST
sudipta sanyalRank #1,945 · 753 reputationPosted Feb 22, 2017, 1:47 AM EST
@Rafnas was already answered the solution, Please go throw his post
Rafnas T PRank #280 · 8.8K reputationPosted Feb 15, 2017, 7:53 PM EST
string fileExtension = System.IO.Path.GetExtension("FullFilepath");string dest = System.IO.Path.ChangeExtension(fileLocation, ".jpeg");