|
Post by Stefan on Apr 26, 2017 7:04:51 GMT -5
Observed using Windows 10 Pro Version 1607, 64-bit. and SPFLite Version 8.5.7027
Example: In C:\Program Files (x86)\SPFLite there is a file called "Changes.txt". If I load it with Notepad, modify the file and try to save it, I'm (effectively!) told "Access Denied". Same thing happens when I try "Save As" with a new name of "ChangesNew.txt".
If I do the same via SPFLite, the modification is saved. Subsequently, the file appears under File Manager's RECENT tab. This is also true when I use CREATE to make a new file, e.g. ChangesNew.txt. No error. The hiccup is....
... when looking at folder "C:\Program Files (x86)\SPFLite\" with Windows Explorer, Notepad shows that file "Changes.txt" remains unaltered and file "ChangesNew.txt" does not exist. Yet via SPFLite File Manager both files, including the modified text, can be accessed. Issuing WDIR against either file will not open to "C:\Program Files (x86)\SPFLite" but shows "This PC" instead supporting the view that as far as Windows is concerned, the files are not where SPFLite implies they should be. So where did SPFLite squirrel away the modified file and the new file, if not in the original directory?
|
|
|
Post by George on Apr 26, 2017 14:40:44 GMT -5
This 'squirreling away' is Windows 'kindly' handling of saving things into protected folders. It somehow manages to store it somewhere else and make it appear that it hasn't. I'm not going to try and explain further because I simply don't understand it any better myself. Just save the file somewhere else, like your Documents\SPFLite\folder.
George
|
|
|
Post by Stefan on Apr 27, 2017 3:53:58 GMT -5
Hmm, I wondered if Windows "interfered" in some way, but that isn't really the point. If I change or create something with SPFLite, I expect to be able to find it again using standard tools outside the SPFLite environment or be informed that it can't be saved.
I was using "C:\Program Files (x86)\SPFLite\Changes.txt" as a convenient example. If this had been, say, source code, a subsequent compile process would pick up the wrong version of the code as the file in its original location remained unchanged. The user wouldn't know this because as far as they are concerned, the file was confirmed as "updated in place" and hence they wouldn't have saved it to another path/location.
|
|
|
Post by George on Apr 27, 2017 9:37:04 GMT -5
Stefan: First: I doubt very much you'd be saving stuff like source code etc. in Windows protected folders. Second: Locating them isn't the problem, Windows retrieves them from it's 'secret' hidey-hole just fine.
e.g. I create a new file called TestFile.txt and do a SAVEAS to C:\Program Files (x86)\SPFLite\TestFile.txt. I go to Explorer and look at the folder -- Not there. But if I Open C:\Program Files (x86)\SPFLite\TestFile.txt it opens just fine. (So somehow Windows knows about it and figures out how to access it.)
How Windows does it, I don't know, and frankly don't care. There's probably some neat Windows API to assist in resolving all this, but SPFLite is certainly not going to alter all it's file handling routines to use it to try and figure all this out. The file shows up in Recent Files just as it was saved (C:\Program Files (x86)\SPFLite\TestFile.txt) and opens fine if clicked on.
If you insist on saving important things in Windows protected folders, and odd things happen, then you certainly know how to avoid this happening.
George
|
|