-1

When i write nul.> on cmd I get:

Access is denied.

How can I make a file on the C drive? I tried to use the echo.> command but it doesn't work.

Patrick
  • 5,526
  • 14
  • 64
  • 101
Tesla
  • 15
  • 5

2 Answers2

0

The root of the system drive has restricted access, requiring elevated permissions to write to it. The same is true of some subfolders.

To create a file on the C drive therefore, you should create it in a subfolder to which you have access.

Reg Edit
  • 6,719
  • 1
  • 35
  • 46
0

At the beginning open the command prompt "Run as administrator" and press enter for each line..

  1. cd\
  2. type nul > hellofile.txt
  3. echo.>hellofile.txt