Environment.GetFolderPath(Environment.SpecialFolder.Desktop) Environment.GetFolderPath(Environment ...
Environment.GetFolderPath(Environment.SpecialFolder.Desktop) Environment.GetFolderPath(Environment ...
一、用内置的winreg(推荐) import winreg def get_desktop(): key = winreg.OpenKey(winreg.HKEY_CURRENT_U ...
桌面路径:Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); //获取DLL的目录 Assembly myAssembly = Assembly.GetEntryAssembly();string ...
1.获取方式如下 ...
//当前用户桌面 File desktopDir = FileSystemView.getFileSystemView() .getHomeDirectory(); String desktopPath = desktopDir.getAbsolutePath(); ...
...
string path = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); 生成的运行bin文件下的路径:AppDomain.CurrentDomain.BaseDirectory ...
界面: 声明: textBox1.Text为指定文件路径:string path = @"F:\ABB-pragram\ABB工作站\ABB Station\Systems\SituationalTeaching_Carry\HOME"; textBox2.Text为得到的该指定文件路径 ...