Solved

Write To A File in System Folder.

Posted on 2001-06-08
3
179 Views
Last Modified: 2010-04-11
I have developed an application which writes data to a text file in the system folder.
However, if the logged on user does not have administrator rights, the application is not able to write to the text file.
I want to know how my application can write to that text file or how I can give "Everyone" the rights to access my file.
0
Comment
Question by:anupjishnu
  • 2
3 Comments
 
LVL 24

Expert Comment

by:SunBow
Comment Utility
How about: don't?
First, place file elsewhere. Consider public area.
You can always copy or merge them to a more secreted area later.
Another consideration - think transactions. If short message or text file. Perhaps manage with a batch file or three.
The 'AT' command can schedule a batch file to run, that can copy your logs. Or text files created by general users. It runs at higher privelege with no one logged on.

If user is making a big text file that has content known to user, in common language (not computer-eze), and user wants to share, well,,, put up a share to help them do that.
0
 
LVL 24

Expert Comment

by:SunBow
Comment Utility
Divide & Conquer: Split application in two - one) for user to generate shared text, two) for application to move to secured area and massage it as needed
0
 
LVL 12

Accepted Solution

by:
Housenet earned 50 total points
Comment Utility
-Change permissions on the system folder to everyone full control & do not replace permissions on sub-folders.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: btan
Provide an easy one stop to quickly get the relevant information on common asked question on Ransomware in Expert Exchange.
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now