Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的应用程序中运行新应用程序,例如new open. 我用:
new open
Process.Start(@"filelocation");
没关系,但是当用户更改文件位置时,我怎样才能找到它。
你有三个选择:
在 xml 文件或配置文件中捕获文件位置。
从文件中读取位置。
当用户更改位置时,他们需要确保在配置文件中更新位置数据。
或者,用户可以输入完整路径作为参数。