File save error...

Cr00zng

New member
Pro User
Local time
2:28 PM
Messages
568
This has been puzzling me since Vista and now Windows 7; at least now I know the reason...

The type of file being changed is .txt, .css, .html, etc. Open the file in Notepad, Dreamweaver, or any other HTML editor, modify the content, and save or "Ctrl+S" the file under the original name. Windows does not allow saving the file and presents this pop up:

save_error.jpg

Reducing the content of the file generally does not result in this error, depending on the level of reduction; addition on the other hand always does.

The culprit for this error is the Windows Explorer layout, more accurately the "Preview pane" under "Organize\Layout" section. Explorer displays the content of the file in the "Preview pane" if and when the file name is highlighted. As far as Windows is concerned at that point, the file is "opened/owned" by Windows Explorer and as such, the system locks file editing by any other application. It doesn't matter that both the Windows Explorer and the file in itself opened by the same user, evidently Windows Explorer process takes precedent over other application process when it comes to modifying file content. This file lock is temporary and last until the file name is highlighted or Explorer is closed. The permanent fix for this error is to disable Explorer's "Preview pane", especially for people who edit HTML files with Notepad or any other HTML editor.

Interestingly, none of the MS Office files display this error when editing word, excel, etc, files. Microsoft did make provision for the Office files; however, it isn't only Notepad that hasn't been accounted for. For example Microsoft Expression Web 3 also falls victim to this error:

expression.jpg

The "Preview pane" is most certainly a feature that should behave the same across the board instead of being dependent on the file extension. Does anyone have an idea how to make Windows handle any file extension the same way as it handles Microsoft Office extensions?
TIA...

Cr00zng
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built at Home
OS
Windows 7 64-bit, Windows 8.1 64-bit, OSX El Capitan, Windows 10 (VMware)
CPU
Intel i5-3350P 3.1 GHz
Motherboard
Gigabyte GA-Z77X-UP5 TH
Memory
16 GBs GSkill Sniper
Graphics Card(s)
Radeon HD 7850
Sound Card
VIA HD Audio
Monitor(s) Displays
Dell U2410 24"
Screen Resolution
1920x1200
Hard Drives
1 x Intel 520 240 GBs
1 x Seagate 1TBs SATA 2.0,
1 x Seagate 1TBs eSATA 2.0
PSU
Thermaltake 850W
Case
Antec P183
Cooling
Noctua NH-D14 Heatsink 2 x 120mm fans, 4 x 120mm case fans
Keyboard
Dell Multimedia keyboard
Mouse
Logitech Trackball
Internet Speed
28.5 Mb/s
Try closing the Explorer window prior to save the file, or change it's view to a different directory prior to saving the file.
 

My Computer

Computer Manufacturer/Model Number
DIY
OS
W7x64 Pro, SuSe 12.1/** W7 x64 Pro, XP MCE
CPU
Phenom II 1090T w/Noctua NH-D14 /**4400+ X2 w/CM Hyper TX 3
Motherboard
ASRock 890FX Deluxe 4/**A8N-SLI
Memory
2 x 2GB Patriot PGS34g1600LLKA/**4x1GB Corsair VS
Graphics Card(s)
EVGA GTX460 SC/**EVGA 8800GTS
Sound Card
Asus Xonar D2X/**Xonar D1
Monitor(s) Displays
Acer X233H, Dell E152FPc /**LG M237-WD
Screen Resolution
1920x1080 & 1024x768/**1980x1080
Hard Drives
WDC 2TB, 1.5TB, 1TB, 500GB,Seagate 500GB , Maxtor 80GB /**500GB Seagate & WDC 1TB Black
PSU
CM RS600 w/ APC BX1000G/**Antec 500 TP w/ APC BX1000
Case
HAF922/**Antec 1040IIB
Cooling
3x200mm, 1x140 and 1x120mm/**5x80mm fans
Keyboard
Logitech Media USB/**Saitek Eclipse
Mouse
Cordless Trackman Wheel/**Ditto
Internet Speed
3.3Mbps
Other Info
SB 560 5.1 w/ Sennheiser RS140/**Creative T20 speakers, Dvico FusionHDTV7 Gold RT, Cisco E3000, HP 5510V AIO, Linksys E3000, Belkin F5U237 hub and **F5D8055 adapter
(** = 2nd rig)
Try closing the Explorer window prior to save the file, or change it's view to a different directory prior to saving the file.
That just hides the issue and it still results in additional steps to save the file. Disabling the "Preview pane" also hides the issue; however, no additional steps required for saving the file.
I was looking for having the "Preview pane" and eliminate the extra steps for saving the file.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built at Home
OS
Windows 7 64-bit, Windows 8.1 64-bit, OSX El Capitan, Windows 10 (VMware)
CPU
Intel i5-3350P 3.1 GHz
Motherboard
Gigabyte GA-Z77X-UP5 TH
Memory
16 GBs GSkill Sniper
Graphics Card(s)
Radeon HD 7850
Sound Card
VIA HD Audio
Monitor(s) Displays
Dell U2410 24"
Screen Resolution
1920x1200
Hard Drives
1 x Intel 520 240 GBs
1 x Seagate 1TBs SATA 2.0,
1 x Seagate 1TBs eSATA 2.0
PSU
Thermaltake 850W
Case
Antec P183
Cooling
Noctua NH-D14 Heatsink 2 x 120mm fans, 4 x 120mm case fans
Keyboard
Dell Multimedia keyboard
Mouse
Logitech Trackball
Internet Speed
28.5 Mb/s
This has been puzzling me since Vista and now Windows 7; at least now I know the reason...

The type of file being changed is .txt, .css, .html, etc. Open the file in Notepad, Dreamweaver, or any other HTML editor, modify the content, and save or "Ctrl+S" the file under the original name. Windows does not allow saving the file and presents this pop up:

View attachment 43435

Reducing the content of the file generally does not result in this error, depending on the level of reduction; addition on the other hand always does.

The culprit for this error is the Windows Explorer layout, more accurately the "Preview pane" under "Organize\Layout" section. Explorer displays the content of the file in the "Preview pane" if and when the file name is highlighted. As far as Windows is concerned at that point, the file is "opened/owned" by Windows Explorer and as such, the system locks file editing by any other application. It doesn't matter that both the Windows Explorer and the file in itself opened by the same user, evidently Windows Explorer process takes precedent over other application process when it comes to modifying file content. This file lock is temporary and last until the file name is highlighted or Explorer is closed. The permanent fix for this error is to disable Explorer's "Preview pane", especially for people who edit HTML files with Notepad or any other HTML editor.

Interestingly, none of the MS Office files display this error when editing word, excel, etc, files. Microsoft did make provision for the Office files; however, it isn't only Notepad that hasn't been accounted for. For example Microsoft Expression Web 3 also falls victim to this error:

View attachment 43436

The "Preview pane" is most certainly a feature that should behave the same across the board instead of being dependent on the file extension. Does anyone have an idea how to make Windows handle any file extension the same way as it handles Microsoft Office extensions?
TIA...

Cr00zng

Might I suggest that something else other than Explorer is the culprit? I've just run a test to try an duplicate the messages you get. I create a TXT document, and populate it with as much data as I can (file sizes in the test ranged from a few KB to several MB). I highlight the file in Explorer so that it shows in the Preview Pane. Then I double click to open in Notepad and make some changes. Before saving, I go back to Explorer to make sure that the file is still highlighted and visible in the preview pane. When I go back to Notepad and either CTRL+S or FILE->SAVE, in all instances of the test, the file saved correctly, with no ownership or in use warnings popping up.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Virtual Machine
OS
Windows 7 Professional 32-bit SP1
CPU
AMD A4/A6
Motherboard
Intel Corporation 440BX Desktop Reference Platform
Memory
3.00GB EDO
Graphics Card(s)
VMware SVGA 3D
Sound Card
High Definition Audio Device
Monitor(s) Displays
Generic Non-PnP Monitor on VMware SVGA 3D
Screen Resolution
1440x900
Hard Drives
1 x 60GB VMware Virtual SATA Hard Drive ATA Device
Antivirus
Kaspersky Total Security
Might I suggest that something else other than Explorer is the culprit? I've just run a test to try an duplicate the messages you get. I create a TXT document, and populate it with as much data as I can (file sizes in the test ranged from a few KB to several MB). I highlight the file in Explorer so that it shows in the Preview Pane. Then I double click to open in Notepad and make some changes. Before saving, I go back to Explorer to make sure that the file is still highlighted and visible in the preview pane. When I go back to Notepad and either CTRL+S or FILE->SAVE, in all instances of the test, the file saved correctly, with no ownership or in use warnings popping up.
I am not certain what else could cause this, seemingly on my and not your machine. I've reran the test as you described it and have the same result, no problems saving the file.

I've also retested editing my websites and have no issues with saving the files highlighted with Notepad, Dreamweaver, or MS Expression. This is weird, earlier the issue has been so evident; the posted images are proof that Explorer (or something else) did have the issue. The machine had not been rebooted and for that matter all the applications tested were and still are open.

I do recall that I've seen this issue a number of times before on occasions, both Vista and Seven; however, I had not been curious enough to find the reason until today. Maybe my conclusion has been wrong...
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built at Home
OS
Windows 7 64-bit, Windows 8.1 64-bit, OSX El Capitan, Windows 10 (VMware)
CPU
Intel i5-3350P 3.1 GHz
Motherboard
Gigabyte GA-Z77X-UP5 TH
Memory
16 GBs GSkill Sniper
Graphics Card(s)
Radeon HD 7850
Sound Card
VIA HD Audio
Monitor(s) Displays
Dell U2410 24"
Screen Resolution
1920x1200
Hard Drives
1 x Intel 520 240 GBs
1 x Seagate 1TBs SATA 2.0,
1 x Seagate 1TBs eSATA 2.0
PSU
Thermaltake 850W
Case
Antec P183
Cooling
Noctua NH-D14 Heatsink 2 x 120mm fans, 4 x 120mm case fans
Keyboard
Dell Multimedia keyboard
Mouse
Logitech Trackball
Internet Speed
28.5 Mb/s
First off, I understand this is an old forum topic. But, this is the closest topic I could locate with the same issue as I am facing. Forgive me.

I just wanted to see if there was any further knowledge into this. Because what I am seeing is a bit more drastic. Not only does it not allow me to save the changes to the file, the file disappears all together after the issue is encountered.

Scenario:

1) Open html file in dreamweaver. Note: File showing in the preview window.
2) Edit the file.
3) Receive error upon trying to save the changes.
Error: "access to c:\users\<my pc>\desktop\BLAHBLAH.tmp was denied"
4) Attempt to close the application prompts me if I would like to save the changes. Knowing it won't save, I hit "No".
5) File disappears!!!!!

When I say disappears, I mean ... poof. Gone. The file is completely removed from the folder I had it in. Like it never existed. Not located in the recycle bin. Not anywhere. I've had this happen a few times, and it scares the crap out of me that files can be permanently deleted in such a fashion. Makes me wonder how many files I've lost because of this.

It's very weird. I mean, it makes sense to me that Windows explorer may think the file is being used via "Preview pane", yadda yadda. But, perm delete the file!? :confused:

Anyone else experience this?
If so, any recommendations? (lieu of disabling the preview pane, which I've already done)

Any help would be greatly appreciated.
Thanks!

-Jerry.
 

My Computer

OS
Windows 7
Just a thought, does this still happen if you run dreamweaver as administrator (right click on the program - run as admin)?
 

My Computer

Computer type
PC/Desktop
OS
Windows 11
Suspect a permissions issue. Log in using the windows hidden administrator account, then try saving.


1. log in using your normal account
2. run CMD as admin.
3. type "net user administrator /active:yes" and hit enter
4.log off your user account. when the logon screen appears you should now see a new admin logon.
5.Login into this new admin and try alteing your files.
6.Before logging off this admin account go back to the cmd prompt and
type "net user administrator /active:no"
7.log off and re-login into your normal account.

 

My Computer

Computer Manufacturer/Model Number
Too many to describe...
OS
Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
I've had this issue. The only workaround I could come up with was to restart the PC and save the file after restart. Glad I'm not the only one seeing this issue.
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron 1520 (Laptop)/ Home (Desktop)
OS
Windows 7 x64 / Same
CPU
Intel Core 2 Duo T7250 / Intel Core i7 930
Motherboard
Intel 945 / Asus P6X58D-E
Memory
4GB / 6GB
Graphics Card(s)
NVIDIA GeForce 8400M GS / ASUS 1GB
Sound Card
Whatever Dell gave me :-( / Onboard
Monitor(s) Displays
15.4" LCD / Crappy CRT
Hard Drives
Seagate 500GB SATA; 7200 RPM / Seagate 1TB SATA; 7200 RPM
PSU
N/A / OCZ Fatal1ty 550W Modular
Case
N/A / Antec 900
Cooling
Air
Mouse
Microsoft Presenter (Bluetooth)
Just a thought, does this still happen if you run dreamweaver as administrator (right click on the program - run as admin)?

Yes. This was my first thought and have previously tried this.
Even when I run under Admin, the issue is still present.

Suspect a permissions issue. Log in using the windows hidden administrator account, then try saving.


1. log in using your normal account
2. run CMD as admin.
3. type "net user administrator /active:yes" and hit enter
4.log off your user account. when the logon screen appears you should now see a new admin logon.
5.Login into this new admin and try alteing your files.
6.Before logging off this admin account go back to the cmd prompt and
type "net user administrator /active:no"
7.log off and re-login into your normal account.

Oddly enough, I was NOT able to reproduce the issue logged in under the administrator account. So, you are undoubtedly correct. This is a permissions issue.

Any ideas?
 

My Computer

OS
Windows 7
Yup. I'm well aware of file/directory ownership. Unfortunately, taking ownership of the file/directory does not resolve the issue. I already tried this.

I may have a corrupted profile. I can't think of anything else, at this point.

I guess the main point of this post is -- are you able to do this without issues? Or is it just my setup?

This will at least narrow it down to a profile issue.
 

My Computer

OS
Windows 7
Have you checked for any dreamweaver updates at adobe?

Yes, my DW is up to date.

Please note that even if I choose to edit in notepad, I receive the same error of the OP. "The process cannot access the file because it is being used by another process." This further indicates that the preview pane (via Windows explorer) is not releasing the file as intended.

-- The only difference when I open in notepad is the file does not get lost in the MS Bermuda Triangle when error is present. (meaning: doesn't delete itself.) It seems to only disappear when I use DW. So that narrows that down.

hmm.
 

My Computer

OS
Windows 7
Try creating a new account of the same type you have now, then check if the problem exists in that too. That could narrow down the profile issue. Also, see this thread on how to fix a corrupted profile and copy your profile settings.

Fix a corrupted user profile
 

My Computer

Computer Manufacturer/Model Number
Too many to describe...
OS
Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
Thanks guys. I may just create a new profile. I didn't want to have to go through all the junk associated with it, but I may be forced to. If I decide to take this path, I'll follow-up with you to let you know how it went.

Again, I want to thank those of you that took the time to assist in helping me. It means a lot to me and is greatly appreciated. This is a great forum.

Follow-up to come...

-Jerry Lee.
 

My Computer

OS
Windows 7
Back
Top