搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Accidentally changed my .json file to an .html, can't change it back...

  • 4 回覆
  • 7 有這個問題
  • 1 次檢視
  • 最近回覆由 mazboot

more options

Hi,

I backed up my bookmarks as a .json file, then upgraded from Windows Vista Home Premium to Windows 7 Professional. Got confused about my bookmark back-up file when Windows didn't recognize the file type (because there was no extension attached to the file), and for some reason used 'Properties' to append the filename with ".html" Now that I recall it's supposed to be imported as a .json, windows won't let me change it back. Even when I add ".json" to the filename, windows (and Firefox) still see it as an html file.

Hi, I backed up my bookmarks as a .json file, then upgraded from Windows Vista Home Premium to Windows 7 Professional. Got confused about my bookmark back-up file when Windows didn't recognize the file type (because there was no extension attached to the file), and for some reason used 'Properties' to append the filename with ".html" Now that I recall it's supposed to be imported as a .json, windows won't let me change it back. Even when I add ".json" to the filename, windows (and Firefox) still see it as an html file.

所有回覆 (4)

more options

Hello.

You should be able to change it back to .json pretty easy. Just rename the file. If windows doesn't let you do this, you should contact Microsoft for support. Although this may be caused by the very dangerous feature of Windows that is to automatically hide file extensions. You should always have file extensions displayed, at all times, always, otherwise you are incurring in a very dangerous security problem.

On Windows 7, you can go, in the Windows Explorer, into Tools > Folder options... > View > Advanced Settings: and untick Hide extensions for known file types. If that doesn't help, you really need to contact Microsoft for support.

I'm sorry I can't be of more assistance.

more options

You can add quotes around the name to force a file extension: "bookmarks.json"
Otherwise Windows will preserve the hidden .html file extension and add the .json to the left part of the name.

more options

Morbus,

That did the trick. Problem solved. Thanks for the tip.

more options

Cor-el,

In case I need to know how in the future, can you tell me where I could do this? Every time I tried, I'd immediately get a notice that (") is not allowed in a filename.

Thanks,