For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Syntax > March 2006 > user path









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author user path
suwon

2006-03-27, 4:04 am

hi,
how to get user path in VB6 code base on their user profile ?
thks a lot

suwon
Karl E. Peterson

2006-03-28, 10:03 pm

suwon wrote:
> how to get user path in VB6 code base on their user profile ?
> thks a lot


The correct way is to use either SHGetFolderPath or
SHGetSpecialFolderLocation. But, if you can tolerate some risk of failure,
try Environ("UserProfile")
--
Working without a .NET?
http://classicvb.org/


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com