READ AND WRITE FOLDER FOR EVERYBODY

D

davide77

Hi,
I'm building a VB application with installer.
Well I want that after the administrator installation it creates a
files and folders and if I run that application logged as user I dont
want that vista copies my files to VirtualStore folder...I want the
same path where all the users can write.
I just used the path c:\ProgramData\MySoftware\... but it doesnt
work...VISTA creates another folder under VirtualStore folder.
Thank u in advance,
Davide
 
B

Bob

Try this.
Open an administrator command prompt and navigate to the folder. Type
attrib -r *.* and press Enter.

Or open an administrator command prompt. Type [path] attrib -r *.* and press
Enter.
 
K

Kerry Brown

davide77 said:
Hi,
I'm building a VB application with installer.
Well I want that after the administrator installation it creates a
files and folders and if I run that application logged as user I dont
want that vista copies my files to VirtualStore folder...I want the
same path where all the users can write.
I just used the path c:\ProgramData\MySoftware\... but it doesnt
work...VISTA creates another folder under VirtualStore folder.
Thank u in advance,
Davide


These links may help. You shouldn't be storing data in system folders.

http://blogs.msdn.com/cjacks/archiv...te-program-data-instead-of-program-files.aspx

http://msdn2.microsoft.com/en-ca/windowsvista/default.aspx
 
D

davide77


Well I tried to write my files and folders in this special folder C:
\Users\Public\Documents and it works fine...all users can write
there!!
But I want to put my files and folders into another folder not so
visible as C:\Users\Public\Documents...so people doesnt risk to delete
my files and folders.
Thank u
davide
 
D

davide77

Well I tried to write my files and folders in this special folder C:
\Users\Public\Documents and it works fine...all users can write
there!!
But I want to put my files and folders into another folder not so
visible as C:\Users\Public\Documents...so people doesnt risk to delete
my files and folders.
Thank u
davide- Nascondi testo tra virgolette -

- Mostra testo tra virgolette -

first time I launch my software it copies(with FileCopy function) some
files and folders into ProgramData (the special folder
CSIDL_APPDATA)and well if I launch my application second time logged
as other user VISTA copies it in VIRTUALSTORE directory of the user
who launched the application...I think I have a problem with
priviligies.
how to set privileges for all users at runtime?
thank u in advance,
davide
 
K

Kerry Brown

davide77 said:
first time I launch my software it copies(with FileCopy function) some
files and folders into ProgramData (the special folder
CSIDL_APPDATA)and well if I launch my application second time logged
as other user VISTA copies it in VIRTUALSTORE directory of the user
who launched the application...I think I have a problem with
priviligies.
how to set privileges for all users at runtime?


You should ask these questions in a programming forum.

http://msdn2.microsoft.com/en-us/windowsvista/aa905020.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top