DonationCoder.com Software > fSekrit
Run fSekrit from CD
f0dder:
Does it use any temporary file while writing? In which case it may be trying to write the temporary file to a read only location ... just a thought.
-Carol Haynes (November 17, 2007, 05:41 PM)
--- End quote ---
Nope, doesn't do that. (And I've just checked my current work-in-progress against 1.2-release, haven't made changes to the filesave code since then). When fSekrit saves, it first copies itself (the current running module) to the target file, and then it appends the note data.
When a fSekrit note with note data is run, it copies itself to %temp%, and then launches that file as the editor... this was done to be able to save directly (was implemented in 1.2, previous versions did some even nastier copying around :)). So if your .exe on CD has note data in it, the CD shouldn't even be accessed after launching...
A "blank" note doesn't do the tempfile-copying though, so when doing "save as" a blank note will read from the CD...
jfsfgdfg:
Yes that is the error. Very strange that you can't duplicate it. I just tried again using both save and "save as" and trying to save to a RAM drive - same error.
I then moved fSekrit to the RAM drive and it saves fine.
The temporary location idea seems like an idea. I am running my BartPE CD inside a virtual machine where there are no local machine environment variables set. So if this was the case even burning it to a CD on your machine fSekrit would work OK.
Thanks.
P.S. I did notice the double error message on the save just now.
We were editing at the same time. The fSekrit note on the CD is blank.
jfsfgdfg:
I did a FileMon on fsekrit. Here is part of the log.
--- ---3134 5:13:51 PM fSekrit.exe:600 OPEN B:\test23 NOT FOUND Options: Open Directory Access: Traverse
3135 5:13:51 PM fSekrit.exe:600 OPEN B:\test23 NOT FOUND Options: Open Directory Access: Traverse
3136 5:13:51 PM fSekrit.exe:600 OPEN B:\test23 NOT FOUND Options: Open Access: All
3137 5:13:51 PM fSekrit.exe:600 CREATE B:\test23 SUCCESS Options: Create Access: All
3138 5:13:51 PM fSekrit.exe:600 CLOSE B:\test23 SUCCESS
3139 5:13:51 PM fSekrit.exe:600 OPEN B:\test23 SUCCESS Options: Open Access: All
3140 5:13:51 PM fSekrit.exe:600 QUERY INFORMATION B:\test23 SUCCESS FileAttributeTagInformation
3141 5:13:51 PM fSekrit.exe:600 DELETE B:\test23 SUCCESS
3142 5:13:51 PM fSekrit.exe:600 CLOSE B:\test23 SUCCESS
3143 5:13:51 PM fSekrit.exe:600 QUERY INFORMATION B:\test23 NOT FOUND Attributes: Error
3144 5:13:51 PM fSekrit.exe:600 QUERY INFORMATION B:\test23 NOT FOUND Attributes: Error
3145 5:13:51 PM fSekrit.exe:600 QUERY INFORMATION B:\ SUCCESS Attributes: CDRHS
3146 5:13:51 PM fSekrit.exe:600 OPEN B:\ SUCCESS Options: Open Directory Access: All
3147 5:13:51 PM fSekrit.exe:600 DIRECTORY B:\ NO SUCH FILE FileBothDirectoryInformation: test23
3148 5:13:51 PM fSekrit.exe:600 CLOSE B:\ SUCCESS
3149 5:13:51 PM fSekrit.exe:600 CLOSE B:\ SUCCESS
3150 5:13:51 PM fSekrit.exe:600 QUERY INFORMATION B:\test23.exe NOT FOUND Attributes: Error
3151 5:13:56 PM fSekrit.exe:600 CREATE B:\test23.exe SUCCESS Options: OverwriteIf Sequential Access: All
3152 5:13:56 PM fSekrit.exe:600 QUERY INFORMATION B:\test23.exe SUCCESS FileFsAttributeInformation
3153 5:13:56 PM fSekrit.exe:600 QUERY INFORMATION B:\test23.exe SUCCESS Attributes: CRA
3154 5:13:56 PM fSekrit.exe:600 SET INFORMATION B:\test23.exe SUCCESS Length: 51200
3155 5:13:56 PM fSekrit.exe:600 WRITE B:\test23.exe SUCCESS Offset: 0 Length: 51200
3156 5:13:56 PM fSekrit.exe:600 SET INFORMATION B:\test23.exe SUCCESS FileBasicInformation
3157 5:13:56 PM fSekrit.exe:600 CLOSE B:\test23.exe SUCCESS
3158 5:13:56 PM fSekrit.exe:600 OPEN B:\test23.exe SUCCESS Options: Open Access: All
3159 5:13:56 PM fSekrit.exe:600 QUERY INFORMATION B:\test23.exe SUCCESS Length: 51200
3160 5:13:56 PM fSekrit.exe:600 READ B:\test23.exe SUCCESS Offset: 51192 Length: 8
3161 5:13:56 PM fSekrit.exe:600 CLOSE B:\test23.exe SUCCESS
3162 5:13:56 PM fSekrit.exe:600 OPEN B:\test23.exe ACCESS DENIED NT_AUTHORITY\SYSTEM
jfsfgdfg:
Sorry to bombard the board. But in doing some more testing - I ran notepad.exe off the CD and saved to the RAM drive with no problems.
Carol Haynes:
Could it be that during a save when it saves the basecode of fsekrit if the base code is readonly - it will copy as a read only file and then when you try to append the data it will fail because it can't append to a readonly file?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version