You are accessing this site in a read-only mode. For full access to all member benefits, including message posting, please login or register. Registration is completely free, simple, and takes only a few seconds.
The message you are replying to and its parents are listed in the reverse order with the most recent posts first. This might not be the whole discussion thread. To read all the messages in this thread please click here.
Re: Create Folders and Write To Hard Disk Other than C:
| mayayana | 08 Mar 2010 03:43 |
> thanks > but is it correct that the user can only set the permission level to [quoted text clipped - 3 lines] > and as i have stated, it may be mandatory for the user to select a different > drive than C: due to space limitations. I think that Nobody addressed that. You need to create the folder(s) during install when you're running as Admin. Failing that, you'd need another process that runs as Admin, or just leave it up to the person using the software to log on as Admin when they create the folder. Nobody's explanation is pretty much what I thought was the case: Someone who's running as a normal user can create a folder, but other "normal users" can't access it.
|
| Bee | 08 Mar 2010 01:28 |
thanks but is it correct that the user can only set the permission level to him/herself and not allow the data to be shared by others? I need to allow the text and image files that the user creates to be shared by all users. the user controls the generation and amount of data. and as i have stated, it may be mandatory for the user to select a different drive than C: due to space limitations.
> There's a compact class here that I use for my installers: > [quoted text clipped - 37 lines] > > . |
| mayayana | 06 Mar 2010 04:23 |
There's a compact class here that I use for my installers:
http://www.jsware.net/jsware/vbcode.php5#perms
There are 3 function:
1) Check the partition formatting. (XP is not necessarily on NTFS. It may be on FAT32. And a data partition can be FAT32. Permissions only apply to NTFS.)
2) Get current permissions on a file/folder/Registry key.
3) Set permissions on a file/folder/Registry key. The setting permissions function is basic: add or remove full permission for all.
> My app can generate many gigabytes of data files (several megabytes each) per > the user choice. For those who wonder, this happens over many hours and or [quoted text clipped - 15 lines] > (3) when I reopen the app, do I need to do anything if I find the folder > previously created? e.g. set permissions again? etc. |
| Bee | 06 Mar 2010 01:36 |
My app can generate many gigabytes of data files (several megabytes each) per the user choice. For those who wonder, this happens over many hours and or days.
I am making XP and up a requirement for using the app. So, for XP and up how do I do the following:
(1)Set permissions on a different hard drive (other than C:) to read, write and delete data files. (a)for this user (b)for all users (common data).
(2)Create a folder (assumes this is different than "normal").
I may be totally wrong, but I assume that reading, writing and deleting the file in this folder once created is as usual.
(3) when I reopen the app, do I need to do anything if I find the folder previously created? e.g. set permissions again? etc.
|
Quick links: