- Joined
- May 29, 2024
- Messages
- 2
- Reaction score
- 0
We have developed a Windows application that sends files to an SFTP server. Each installation requires a unique configuration (such as the SFTP path), so we plan to store this information in a config.ini file. When the installer is triggered, it needs to read the config.ini file and save the information to the Windows registry.
Our goal is to ensure that the .exe file and the config.ini file are in the same directory. When the .exe file is executed, the application needs to determine its current directory in order to access the config.ini file. How can we achieve this in a C# application?
Our goal is to ensure that the .exe file and the config.ini file are in the same directory. When the .exe file is executed, the application needs to determine its current directory in order to access the config.ini file. How can we achieve this in a C# application?