Results 1 to 4 of 4

Thread: URGENT - Getting PC personal Settings in VB ie userprofile

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    2

    Smile URGENT - Getting PC personal Settings in VB ie userprofile

    Hi Can anyone help

    I am trying to get the command prompt %userprofile% variable into VB 6.0

    this returns .....

    c:\winnt\profiles\<username> or
    c:\document and settings\<username>

    I understand there is Kernel32.dll and advapi32.dll

    I have used GetWindowsDirectory but all this returns is c:\winnt for NT and c:\document and settings\ for Win 2000 and XP but I need it working for all OS.

    I had thought of getting the system OS and then inserting "\profile\" it but thats not great programming.


    Any help is welcome.

    Gary
    Last edited by GaryB1; Feb 23rd, 2005 at 03:07 PM. Reason: Urgent replys required

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width