Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

get Current user acount name

Posted on 2006-10-20
2
Medium Priority
?
265 Views
Last Modified: 2010-04-05
hi experts
how i can get current user acount name and path of file: for example " C:\Documents and Settings\Vesal\Local Settings\Application Data "
0
Comment
Question by:mahdiparak
2 Comments
 
LVL 19

Accepted Solution

by:
MerijnB earned 2000 total points
ID: 17772064
username := GetEnvironmentVariable('USERNAME');
userhomedir := GetEnvironmentVariable('HOMEDRIVE') + GetEnvironmentVariable('HOMEPATH');
0
 
LVL 1

Author Comment

by:mahdiparak
ID: 17772241
thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

972 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