Empty files if set to never write to disk
Posted: Sat Nov 13, 2010 7:52 pm
Hi. I have just downloaded latest EVB and am trying it out. I have an executable file, that launches another executable if the user chooses an option. Also it uses ShellExecute to display a readme.txt file and .hjt TreePad file by Windows file association. It also has 2 .ico files of different colors to display program state in the Task Tray.
If I leave all files set to default "never write to disk" it shows the .ico files fine. But the secondary executable generates a file not found error. The readme and help files display empty files(since the associated programs see no file is there to open and assume you want to create a new empty file.)
If I set the readme, secondary exe and other files to either always write to disk or write if not exists, everything works.
It seems like the program can pick up on file open calls but has an issue with ShellExecute.
I'm just curious if I can get it to work with only the boxed exe file showing on the hard drive.
edit: a bit more info. Perhaps there's a glitch because the main exe is really an AutoIt3 script compiled to exe.
It uses the script folder location as returned by @ScriptDir macro with a backslash and filename appended to find the file(s) to open.
If I leave all files set to default "never write to disk" it shows the .ico files fine. But the secondary executable generates a file not found error. The readme and help files display empty files(since the associated programs see no file is there to open and assume you want to create a new empty file.)
If I set the readme, secondary exe and other files to either always write to disk or write if not exists, everything works.
It seems like the program can pick up on file open calls but has an issue with ShellExecute.
I'm just curious if I can get it to work with only the boxed exe file showing on the hard drive.
edit: a bit more info. Perhaps there's a glitch because the main exe is really an AutoIt3 script compiled to exe.
It uses the script folder location as returned by @ScriptDir macro with a backslash and filename appended to find the file(s) to open.