FW: Can’t Create File In The C Drive Root Directory – Windows 8

http://www.mkyong.com/computer-tips/cant-create-file-in-the-c-drive-root-directory-windows-8/

Developing a simple Java program to write a file in the C drive root directory (where Windows is installed), but the program prompts an “access is denied” error. Try to create an empty file in the C drive root directory manually, but no options to create any files, only new folder is allowed.

P.S The logged in user is under administrator group.

Solution

In Windows 7 or 8 (may be Vista), users (even administrators) are not allowed to create files in the C drive root directory, otherwise, an error message like “A required privilege is not held by the client” or “access is denied” will be prompted.

To fix it, just turn off the User Account Control (UAC). In Windows 8, do not turn off the UAC via control panel, it must go through the registry.

  1. Press keys “Windows Key + R”, type regedit
  2. Locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA
  3. Update the EnableLUA value to 0 (turn if off)
  4. Restart Windows.

Alternatively
If you think it’s not safe to turn off the UAC feature, then create a new folder under the C drive root directory and put the file inside.

C:\folder\your-file.txt - OK
C:\your-file.txt - NOT OK
时间: 2024-08-29 02:55:13

FW: Can’t Create File In The C Drive Root Directory – Windows 8的相关文章

RMAN备份时报“ORA-19504: failed to create file”和“ORA-27038: created file already exists”

RMAN> run { 2> allocate channel ch00 type disk; 3> backup format '/dbbackup/db_%T' database; 4> release channel ch00; 5> } 报出以下错误: released channel: ch00 RMAN-00571: =========================================================== RMAN-00569: ==

create file遇到操作系统错误5拒绝访问

create file遇到操作系统错误5拒绝访问当用C#程序执行SQL创建一个数据库时出现错误:CREATE FILE 遇到操作系统错误 5(拒绝访问. 原因及解决方法如下:这是因为SQL Server的启动帐户(一般是system或某个操作系统管理员),对C盘没有创建文件的权限.运行services.msc,在服务管理器里找到SQL Server服务,然后看“登录”选项卡,选中本地用户并重启服务. 或者启动Sql server configuration Manager里面修改SQL Serv

CREATE FILE encountered operating system error 5(Access is denied.)

这篇博文主要演示"CREATE FILE encountered operating system error 5(Access is denied.)"错误如出现的原因(当然只是导致这个错误出现的一种场景而已)和如何解决这个问题以及一些不解的迷惑. 实验环境: 操作系统版本: Windows Server 2012 SP2 数据库的版本:Microsoft SQL Server 2014 - 12.0.2000.8 如下所示,SQL Server Database Services

织梦系统中出现DedeTag Engine Create File False提示原因及解决方法

今天更新网站时dedecms系统时,遇到一个问题:DedeTag Engine Create File False  出现这样的提示. 其实这也不算是什么错误,我个人觉得最重要的一点就是根目录下没有给写权限.当然,我用的是Linux系统.我直接给了777权限之后就可以了. 之后在网上看到了一些答案,也贴在这里.希望对有需要的朋友有所帮助. 第一种情况:站点.文件夹权限不足造成无法建立文件 这种情况的出现,一方面可能是Apache设置的读写权限较严格,另一方面原因可能是使用者通过服务器或FTP对一

解决vsftp "上传 553 Could not create file"

这个问题只要: 1. setsebool -P ftpd_disable_trans 1 2. service vsftpd restart 太纠结了,呵呵 解决vsftp "上传 553 Could not create file"

DedeTag Engine Create File False分析及解决办法

一个DEDE程序的题目,网上找到的解决办法什么的写的不够正确具体,所以自己简单写写,希看碰到这种情况的朋友能用得上.对于DedeTag Engine Create File False题目,有朋友提出的鉴别是不是文件夹权限题目的办法是:修改 include/dedetag.class.php文件,搜索"DedeTag Engine Create File False",会找到下面的第一个代码修改为第二个代码.出现的题目是发布文章时候提示:DedeTag Engine Create Fi

尝试打开或创建物理文件时,CREATE FILE 遇到操作系统错误 5

执行 Transact-SQL 语句或批处理时发生了异常. (Microsoft.SqlServer.ConnectionInfo)尝试打开或创建物理文件时,CREATE FILE 遇到操作系统错误 5(拒绝访问.) 解决方法:设置源文件的安全属性为当前用户可以访问的权限.(属性-安全)

linux中ftp提示--553 Could not create file

今天在阿里云的linux上搭建ftp服务的时候,搭建成功之后,上传文件时总提示553 Could not create file,找了半天原因,终于解决了 ftp主目录为/home/myftp chmod -R 755 /home/myftp mkdir  /home/myftp/upload chown ftp:myftp  /home/myftp/upload   原文地址:https://www.cnblogs.com/liemei/p/8136954.html

Navicat for MySQL 新建查询时,报can't create file ...系统找不到指定的文件夹出现问题

如图点击新建查询报错 解决办法 将这个路径修改一下就ok了 Navicat for MySQL 新建查询时,报can't create file ...系统找不到指定的文件夹出现问题 原文地址:https://www.cnblogs.com/perfei456/p/8576944.html