This question was asked a few days ago, is it you ?
Quote:
How to create Excel file 31055.xlsx in application path
Windows actively prevent this from happening for security reasons,it is to prevent malware from altering apps. No app store its own configuration in the app path, there is a reason.
Only supervisors can do this, normal users can't.
Why do you absolutely need to store this Excel file in app directory ?