Creating/Modifying files

G

Guest

When I try to modify some of my files, it will occasionally come up with the
follow message:

"Cannot create the --- file.

Make sure that the path and file name are correct."

Example: When I tried to add a line to my hosts file (system32 - drivers -
etc), and then save it, it will give me that message. Even after selecting
Save As and then selecting the file gives me that message.

Any reason on why this is?
 
C

Charlie42

When I try to modify some of my files, it will occasionally come up with
the follow message:

"Cannot create the --- file.

Make sure that the path and file name are correct."

Example: When I tried to add a line to my hosts file (system32 - drivers
- etc), and then save it, it will give me that message. Even after
selecting Save As and then selecting the file gives me that message.

Any reason on why this is?

Are you running as administrator? Vista won't allow a standard user
account to save files in the system folders.

Charlie42
 
A

Andrew McLaren

Zed said:
When I try to modify some of my files, it will occasionally come up with
the
follow message:
"Cannot create the --- file.
Example: When I tried to add a line to my hosts file (system32 - drivers -
etc), and then save it, it will give me that message. Even after selecting
Any reason on why this is?

Hi Zed

That's correct. The Hosts file is protected, so you cannot easily write to
it. Hijacking IP addresses via hosts file is a favourite technique for
viruses and bots, to spoof sites and locations.

To edit hosts file, you need the full Administrative token. For example:
right-click on the Command Prompt icon in Start Menu, and choose "Run as
Administrator". Then change directory to the drivers\etc directory. Then run
the command "notepad hosts". You should be able to edit the file and save
the changes.

Similar restrictions apply to many files located under "Program Files" and
"Windows" directories. The idea is that Vista is intended to be more secure
than previous versions; the side-effect is some loss of user convenience.

Hope it helps,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top