如何修改users shell folder目录

时间: 2024-04-01 12:31:17 浏览: 21
可以通过以下步骤来修改用户的 Shell Folder 目录: 1. 打开 Windows 的注册表编辑器,方法是在运行框中输入 regedit 并按下 Enter 键。 2. 导航到以下注册表路径:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders 3. 在右侧窗口中,找到您想要修改的 Shell Folder 目录的名称(例如“文档”、“下载”等等),并双击该项。 4. 在弹出的编辑字符串对话框中,修改该项的数值数据为您想要的新目录路径。 5. 重复步骤 3 和 4,直到您修改完毕所有需要改变的 Shell Folder 目录。 6. 退出注册表编辑器,重新启动计算机使更改生效。 请注意,修改 Shell Folder 目录可能会对您的系统造成影响,请仔细考虑并备份您的计算机数据。
相关问题

FolderBrowserDialog 设置根目录为桌面 RootFolder = Environment.SpecialFolder.Desktop; SelectedPath = string.Empty 未生效

如果 `FolderBrowserDialog` 的 `RootFolder` 属性设置为 `Environment.SpecialFolder.Desktop`,并且 `SelectedPath` 属性设置为 `string.Empty`,但是未能生效,可能是因为您的应用程序没有足够的权限来访问桌面文件夹。 您可以尝试使用管理员权限来启动您的应用程序,或者将您的应用程序移动到一个不受限制的文件夹中,例如 `C:\Users\Public`。 如果这些方法都无法解决问题,您可以尝试使用 Windows API 来打开文件夹对话框,例如 `SHBrowseForFolder` 函数。这样可以确保您的应用程序可以访问桌面文件夹。以下是一个使用 `SHBrowseForFolder` 函数的示例: ```csharp using System.Runtime.InteropServices; public static class FolderBrowserDialogEx { [DllImport("shell32.dll")] private static extern IntPtr SHBrowseForFolder(ref BROWSEINFO lpbi); [DllImport("shell32.dll", CharSet = CharSet.Unicode)] private static extern bool SHGetPathFromIDList(IntPtr pidl, IntPtr pszPath); [StructLayout(LayoutKind.Sequential)] private struct BROWSEINFO { public IntPtr hwndOwner; public IntPtr pidlRoot; public IntPtr pszDisplayName; public string lpszTitle; public uint ulFlags; public IntPtr lpfn; public IntPtr lParam; public int iImage; } public static string ShowDialog() { BROWSEINFO bi = new BROWSEINFO(); bi.hwndOwner = IntPtr.Zero; bi.pidlRoot = IntPtr.Zero; bi.lpszTitle = "请选择文件夹"; bi.ulFlags = 0x00000040; // BIF_USENEWUI IntPtr pidl = SHBrowseForFolder(ref bi); if (pidl != IntPtr.Zero) { StringBuilder path = new StringBuilder(260); if (SHGetPathFromIDList(pidl, path)) { return path.ToString(); } } return string.Empty; } } ``` 您可以使用以下代码调用 `FolderBrowserDialogEx.ShowDialog` 方法来显示文件夹对话框: ```csharp string selectedPath = FolderBrowserDialogEx.ShowDialog(); ``` 这将显示一个文件夹对话框,允许用户选择文件夹,并返回所选文件夹的路径。

Can't find bundled java.The folder doesn't exist: /Users/chloe/Downloads/Android Studio.app/Contents/jbr

It seems like you are facing an issue with Android Studio not being able to find the bundled Java Development Kit (JDK). You can try the following steps to resolve the issue: 1. Check if the JDK is installed on your system. You can do this by running the command `java -version` in a terminal. If it's not installed, you can download and install it from the Oracle website. 2. Set the JAVA_HOME environment variable to the location of the JDK installation. You can do this by adding the following line to your shell profile file (e.g., ~/.bash_profile for Bash on macOS or Linux): ``` export JAVA_HOME=/path/to/jdk ``` Replace "/path/to/jdk" with the actual path to your JDK installation. 3. Open Android Studio and go to "File" > "Project Structure". Under "SDK Location", make sure that the "JDK Location" points to the correct JDK installation directory. 4. If the above steps don't work, you can try downloading and installing a standalone version of the JDK and point Android Studio to that installation directory. I hope this helps! Let me know if you have any other questions.

相关推荐

PS C:\WINDOWS\system32> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org) Getting latest version of the Chocolatey package for download. Not using proxy. Getting Chocolatey from https://community.chocolatey.org/api/v2/package/chocolatey/2.0.0. Downloading https://community.chocolatey.org/api/v2/package/chocolatey/2.0.0 to C:\Users\27748\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip Not using proxy. Extracting C:\Users\27748\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip to C:\Users\27748\AppData\Local\Temp\chocolatey\chocoInstall Installing Chocolatey on the local machine Creating ChocolateyInstall as an environment variable (targeting 'Machine') Setting ChocolateyInstall to 'C:\ProgramData\chocolatey' WARNING: It's very likely you will need to close and reopen your shell before you can use choco. Restricting write permissions to Administrators We are setting up the Chocolatey package repository. The packages themselves go to 'C:\ProgramData\chocolatey\lib' (i.e. C:\ProgramData\chocolatey\lib\yourPackageName). A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin' and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'. Creating Chocolatey folders if they do not already exist. chocolatey.nupkg file not installed in lib. Attempting to locate it from bootstrapper. PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding... 警告: Not setting tab completion: Profile file does not exist at 'C:\Users\27748\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'. Chocolatey (choco.exe) is now ready. You can call choco from anywhere, command line or powershell by typing choco. Run choco /? for a list of functions. You may need to shut down and restart powershell and/or consoles first prior to using choco. Ensuring Chocolatey commands are on the path Ensuring chocolatey.nupkg is in the lib folder PS C:\WINDOWS\system32>

最新推荐

recommend-type

grpcio-1.47.0-cp310-cp310-linux_armv7l.whl

Python库是一组预先编写的代码模块,旨在帮助开发者实现特定的编程任务,无需从零开始编写代码。这些库可以包括各种功能,如数学运算、文件操作、数据分析和网络编程等。Python社区提供了大量的第三方库,如NumPy、Pandas和Requests,极大地丰富了Python的应用领域,从数据科学到Web开发。Python库的丰富性是Python成为最受欢迎的编程语言之一的关键原因之一。这些库不仅为初学者提供了快速入门的途径,而且为经验丰富的开发者提供了强大的工具,以高效率、高质量地完成复杂任务。例如,Matplotlib和Seaborn库在数据可视化领域内非常受欢迎,它们提供了广泛的工具和技术,可以创建高度定制化的图表和图形,帮助数据科学家和分析师在数据探索和结果展示中更有效地传达信息。
recommend-type

小程序项目源码-美容预约小程序.zip

小程序项目源码-美容预约小程序小程序项目源码-美容预约小程序小程序项目源码-美容预约小程序小程序项目源码-美容预约小程序小程序项目源码-美容预约小程序小程序项目源码-美容预约小程序小程序项目源码-美容预约小程序小程序项目源码-美容预约小程序v
recommend-type

MobaXterm 工具

MobaXterm 工具
recommend-type

grpcio-1.48.0-cp37-cp37m-linux_armv7l.whl

Python库是一组预先编写的代码模块,旨在帮助开发者实现特定的编程任务,无需从零开始编写代码。这些库可以包括各种功能,如数学运算、文件操作、数据分析和网络编程等。Python社区提供了大量的第三方库,如NumPy、Pandas和Requests,极大地丰富了Python的应用领域,从数据科学到Web开发。Python库的丰富性是Python成为最受欢迎的编程语言之一的关键原因之一。这些库不仅为初学者提供了快速入门的途径,而且为经验丰富的开发者提供了强大的工具,以高效率、高质量地完成复杂任务。例如,Matplotlib和Seaborn库在数据可视化领域内非常受欢迎,它们提供了广泛的工具和技术,可以创建高度定制化的图表和图形,帮助数据科学家和分析师在数据探索和结果展示中更有效地传达信息。
recommend-type

扁平风格PPT可修改ppt下载(11).zip

扁平风格PPT可修改ppt下载(11).zip
recommend-type

zigbee-cluster-library-specification

最新的zigbee-cluster-library-specification说明文档。
recommend-type

管理建模和仿真的文件

管理Boualem Benatallah引用此版本:布阿利姆·贝纳塔拉。管理建模和仿真。约瑟夫-傅立叶大学-格勒诺布尔第一大学,1996年。法语。NNT:电话:00345357HAL ID:电话:00345357https://theses.hal.science/tel-003453572008年12月9日提交HAL是一个多学科的开放存取档案馆,用于存放和传播科学研究论文,无论它们是否被公开。论文可以来自法国或国外的教学和研究机构,也可以来自公共或私人研究中心。L’archive ouverte pluridisciplinaire
recommend-type

【实战演练】MATLAB用遗传算法改进粒子群GA-PSO算法

![MATLAB智能算法合集](https://static.fuxi.netease.com/fuxi-official/web/20221101/83f465753fd49c41536a5640367d4340.jpg) # 2.1 遗传算法的原理和实现 遗传算法(GA)是一种受生物进化过程启发的优化算法。它通过模拟自然选择和遗传机制来搜索最优解。 **2.1.1 遗传算法的编码和解码** 编码是将问题空间中的解表示为二进制字符串或其他数据结构的过程。解码是将编码的解转换为问题空间中的实际解的过程。常见的编码方法包括二进制编码、实数编码和树形编码。 **2.1.2 遗传算法的交叉和
recommend-type

openstack的20种接口有哪些

以下是OpenStack的20种API接口: 1. Identity (Keystone) API 2. Compute (Nova) API 3. Networking (Neutron) API 4. Block Storage (Cinder) API 5. Object Storage (Swift) API 6. Image (Glance) API 7. Telemetry (Ceilometer) API 8. Orchestration (Heat) API 9. Database (Trove) API 10. Bare Metal (Ironic) API 11. DNS
recommend-type

JSBSim Reference Manual

JSBSim参考手册,其中包含JSBSim简介,JSBSim配置文件xml的编写语法,编程手册以及一些应用实例等。其中有部分内容还没有写完,估计有生之年很难看到完整版了,但是内容还是很有参考价值的。