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為得到的該指定文件路徑 ...