I've had a look at the saving a file problem on Vista so its visible to all the users on the PC, and can only see on option, regarding the hidden ProgramData folder (Which is located in the root directory)
I tried this:-
On both Admin/Limited user acounts (Even the guest account) and it worked a charm.
I also read the file from all the accounts using:-
And was happily promted with a Hello from all the accounts
I also had a pop at deleting the file and deleting the folder using the guest account, which appeared to have done the trick when checking the folder on all the accounts.
Is this folder not plausible to throw in your 'global' information, and if not... why?
Dabz
I tried this:-
Local result = CreateDir("c:\ProgramData\ProjectName") Local fileout:TStream If result <> 0 fileout = WriteFile("c:\ProgramData\ProjectName\test.txt") Else RuntimeError "Cannot write file" End If WriteLine(fileout,"Hello") CloseFile fileout End
On both Admin/Limited user acounts (Even the guest account) and it worked a charm.
I also read the file from all the accounts using:-
Local filein:TStream = ReadFile("c:\ProgramData\ProjectName\test.txt") Notify ReadLine(filein) CloseFile filein
And was happily promted with a Hello from all the accounts
I also had a pop at deleting the file and deleting the folder using the guest account, which appeared to have done the trick when checking the folder on all the accounts.
Is this folder not plausible to throw in your 'global' information, and if not... why?
Dabz